How do I pass query parameters when I use Request Dispatcher?
Created May 7, 2012
JIA Java Italian Association [I am using:
reqDisp = servletContext.getRequestDispatcher("/applicationsecurity/RedirectLogin.jsp") reqDisp.forward(req,res);]
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"); reqDisp.forward(req,res);