I have an application where the first page is the jsp page which asks the user to keyin username and password.
Once the user clicks on Login the control is shifted back to the servlet. The servlet invokes the EJBs and gets whether the userlogin is successful or not.
The URL mapping for the servlet is /login.do.
If the user keys in the this path http://localhost:7001/JJWeb/login.do then the doGet method of my servlet will be called where i redirect the user to go back to the login page using the request dispatcher.
Till this everything works but there is a problem when the forward is called.