forward(报此错误)

来安排我

1 回复19 浏览

来自课程:JavaWeb第一季基础(JSP和Servlet)

The method forward(ServletRequest, ServletResponse) in the type RequestDispatcher is 
 not applicable for the arguments (HttpServletRequest, HttpServletRequest)

全部回复(1)

  • ch4n9 1 楼

    你的forward方法使用了两个HttpServletRequest参数。应该是一个HttpServletRequest参数,一个HttpServletResponse参数

发表回复

登录后可以回复