Hello,
I really need your help in this....I am making a
jsp with ajax login page... using eclipse helios,
Tomcat as server and DB2 as my database server..
I made the jsp login, and have successfully passed the parameters over to
servlet for verification from database..
As the username and password gets verified from the database, I wish the servlet to navigate the user to another jsp page.. for this i tried to use both response.sendRedirect() and RequestDispatcher.forward(request,response) .....In both cases, the code of the new jsp page is sent back to login.jsp as a response in xmlhttp.responseText (this was used in case the login failed, servlet can return a "false" for failed login authentication to be printed on login page
Here is the code -
VerifyLogin.java
And this a part of login.jsp which i used for response for failed login authentication -
Kindly guide me on how to navigate to another jsp page..
Thankyou..