I am new to JSP/Servlets, so here is what I am trying to do:
suppose my url is http://mywebsite.com/ and user come on this and it shows a login form, after submitting the form I want to keep the url the same as before that is http://mywebsite.com/ means it should act the main page even after login, not something like this http://mywebsite.com/userlogin/
And also tell me a way to change the url deliberately, I mean when my Servlet1 forwards control to another servlet then url of Servlet will be visible to the user, tell me a way to change the url to servlet2 without using any client side redirect mechanism.