To show the Error message at the login.jsp page using servlet
posted 6 years ago
I am doing a project for which i need to display the error message to the same login.jsp page using servlet.Error messages should be of there types:
For invalid username:invalid user name
For invalid password:Invalid password
For Invalid username or password:user details are not found in database
I am doing these validation against MS-Access Database.
I have written a code which is giving only one type of error:
Thats :For Invalid username or password:user details are not found in database.
Please help me out.Thanks in Advance
This code is working fine for the third type of Error.
I have also written a code to display all the three errors.But it is not working