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 this protected folder. This page (test.jsp) is not in the protected folder. How can I program user name and password in ths test.jsp, so that users will not be asked for user name and password when they click a link to the files in the protected folder?
I am not sure why you would want to do this. If you are putting the username and password in the JSP you may as well not bother to have your folder protected? Let me know if I am missing the point here... S
<a href="http://www.samjdalton.com" target="_blank" rel="nofollow">Sam Dalton</a>,<br />Co-author of [http://www.amazon.com/exec/obidos/tg/detail/-/1590592255/qid=1068633302//ref=sr_8_xs_ap_i0_xgl14/104-4904002-9274339?v=glance&s=books&n=507846]Professional JSP 2.0[/URL] (October 2003)<br />Co-author of <a href="http://www.amazon.com/exec/obidos/ASIN/1861007701/ref=ase_electricporkchop" target="_blank" rel="nofollow">Professional SCWCD Certification</a><br />Co-author of <a href="http://www.amazon.com/exec/obidos/ASIN/186100561X/ref=ase_electricporkchop" target="_blank" rel="nofollow">Professional Java Servlets 2.3</a>
Joined: Nov 17, 2001
Hi Sam, The reason is: the authentication system for the JSP page has already been implemented in the application server. We have a huge number of users, and I don't think it is good to make an anthentication file with all the user names and passwords in HTTP server. Can you help, Sam? Thank you agian for your time. Mike