Submitted by heartin on Thu, 03/19/2015 - 21:23
-
Forms and parameters
-
Create a servlet and name it as AuthServlet
-
Create an html file
-
Create a form that accepts a name, password and pass it on to the above servlet.
-
The receiving servlet (AuthServlet) should check the name and password against a hard coded list of name-password pairs stored in a HashMap. HashMap should be initialized with some dummy usernames and passwords in the constructor/init method of the servlet.