redirect jsp from servlet RequestDispatcher

后端 未结 5 1853
傲寒
傲寒 2020-12-03 15:59

I want to redirect JSP page from one servlet. All JSP pages are under Web Content. not under Web-INF. I have a problem of calling that JSP pages.

5条回答
  •  感动是毒
    2020-12-03 16:06

    This error occurs when you have an error in java scriptlet of your jsp you've forwarded your request to.
    For example I was calling <% request.getAttribute("user"); %> whereas the problem solved when I used <% request.getParameter("user") %>

提交回复
热议问题