Lab 5 Spring 2001- Servlet and Database

Create a servlet that has a doGet function that retrieves two string (loginId and password) from its web page. The doGet function will retrieve the record of the user with the given loginId and check the password typed with the password in the database. In any case a page will be generated with the following text:

  1. If there is no user with the loginId, the page text will be "No user with the loginId "+loginId
  2. If the password doesn't match, the text will be "The password "+password+" does not match this user"
  3. If all is successfull, the text will be "Welcome to our page "+loginId.

You can get a copy of the database by clicking here .