Hi,
I created a login page in HTML and I created a
servlet and when I submit the form it will go to the search servlet and display the user details if the username and password are correct or it will go to new page and display the error page.
But, now I want to display the error message on the login form itself if the username or password incorrect. How can I connect these two pages and display the error message if the login details are incorrect or it should display the user details if the login details are correct.
I want to display an error message instead of redirecting to the new page when the username or password incorrect. For that I am using jQuery.
Thank You.
Here is my code.
Login.html
SearchServlet
URL : search