新手一枚,jsp页面跳转提示HttpServletResponse cannot be resolved to a variable,怎么办哇?

2025-04-26 04:41:02
推荐回答(1个)
回答1:

response.setStatus(HttpServletResponse.SC_MOVED_PERMANENTLY);
提示你HttpServletResponse 不能作为一个变量
把括号中的HttpServletResponse 改为 response试试。