How do I pass query parameters when I use Request Dispatcher?

JIA Java Italian Association

[I am using:

reqDisp = servletContext.getRequestDispatcher("/applicationsecurity/RedirectLogin.jsp")

Since you're working with a request, nstead of using the getRequestDispatcher() method of the ServletContext, you should use the getRequestDispatcher of the HttpServletRequest object.

reqDisp = request.getRequestDispatcher("/applicationsecurity/RedirectLogin.jsp");
Comment and Contribute






(Maximum characters: 1200). You have 1200 characters left.



About | Sitemap | Contact