for example assume four user u1,u2,u3,u4 having the passwords pwd1,pwd2,pwd3,pwd4 respectively.write a servlet for doing the following 1.create a cooki and add these four user id's and passwords to this cookies 2.read the user id password in log in form and authenticate with the value avilable(user id & password in the cookies. if he is a valied user you should welcome him by name other wise display error message. use init-perameter to do this.store the user name password in the web.xml and acces them in the servlet by using the getInitPerameters() method.
If you are facing any programming issue, such as compilation errors or not able to find the code you are looking for.
Ask your questions, our development team will try to give answers to your questions.