Hi,
I have a login
servlet that, as the name would suggest, handles the login functionality of my webapp. If the login is approved, I'm currently forwarding to a static
JSP page, but I would rather forward to another servlet that generates a list and let the user proceed from there.
The servlet to generate the list already works, as does the login servlet, it's just a matter of forwarding from one to the other.
The login servlet only has a doPost method, the doGet just returns the request and response objects. In the other servlet, we'll call MyServlet, it uses both doPost and doGet and the listing functionality exists within the doGet method.
Everytime I try to use the RequestDispatcher to forward to the servlet using my servlet mapping, I get an error. Is it possible to go from doPost to doGet? Or would I have to duplicate the list code inside the doPost method?