I'm Logging in by username="Teja" and password ="Teja123" and when i click on login, LoginServlet gets executed.
LoginServlet is dispatching the request to home.jsp. So, in home.jsp when i click on 'profile' ProfileServlet gets executed. From profile if I wanted to go back to previous page i'm getting a page saying "RESUBMIT THE FORM ? ".
If i'm using response.sendRedirect("home.jsp") in LoginServlet there is no "RESUBMIT THE FORM ? " page but goes back to home.jsp page
login.html
LoginServlet
home.jsp
LogoutServlet
ProfileServlet
link.html
link2.html