password « User « JSP-Servlet Q&A

1. assign user name and password programmatically

Hi, I have a folder (e.g., protected) in HTTP server. This folder contains PDF, HTML, and image files. This folder is password protected. So everytime when a user calls a file/page in this folder, it will pop up and a window asking user name and password. Now, I have another page (e.g., test.jsp or test.html) containing links to the files in ...

2. how do you store user's password?

3. remember user password in jsp/java