hi i want to validate my login page username and password in my servlet against database and if not valid want to display error message saying "Invalid username and password" in my login page.
Then web container picks the jsp file mentioned in the tag and renders it in the web browser.check whether Username exists in database or not using Java Script XML HTTP function and AJAX and in ASP. Here Mudassar Ahmed Khan has explained with an example, how to check Username availability i.e. This article will illustrate how to check Username availability in database on Registration Form by making AJAX call to database using ASP. 2)When user gives details (username and password) and clicks on login button the request goes to the Web Container with the URL (action attribute mentioned in form tag).Web Container checks “web.xml” file for the matching URL.I am a self learner and passionate about training and writing.I am always trying my best to share my knowledge through my blog.Agad If you are building a secure database you should not be keeping the actual password in your database.Agad Hi Agad It's sounds like the better thing to do, the problem is that i don't know how to do it. Http Servlet Response; public class First Servlet extends Http Servlet import Here the Username and Password entered by the user is passed to the stored procedure and its status is captured and if the value is not -1 (Username or password incorrect) or -2 (Account not activated) then the user is redirected to the Home page using Here Mudassar Ahmed Khan has explain with an example, how to check Username availability i.e. This article will illustrate how to check Username availability in database on Registration Form by making AJAX call to database using Java Script XML HTTP function and Web Method in ASP. check whether Username exists in database or not using AJAX Page Methods in ASP. Net AJAX Script Manager and AJAX Page Methods in ASP.