File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes JSP and the fly likes Access protected folder without password Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login
JavaRanch » Java Forums » Java » JSP
Reply Bookmark "Access protected folder without password" Watch "Access protected folder without password" New topic
Author

Access protected folder without password

Mike Yu
Ranch Hand

Joined: Nov 17, 2001
Posts: 175
Hi,
(Not sure if this is the right forum to post this question).
If a folder in IBM HTTP server is protected, then calling the resources (i.e., pdf files) from a browser or a link in another page will pop up a window asking for user name and password.
Now I have a jsp page in WAS, in this jsp page, there are links to the files in the protected folder on HTTP server. This jsp page requires user login. But after users open this jsp page and click the links, I want the files in the protected HTTP folder to be displayed without users typing the user name and password.
Is it possible to make it?
Thanks,
Mike


Thanks,<br />Mike
Sam Dalton
Author
Ranch Hand

Joined: Jul 26, 2001
Posts: 170
Yes this is certainly possible.
Make sure that the 2 sets of resources (the JSP and the PDFS) are accesible by the same role within the web container (this is defined in web.xml) This should allow you to log in once and only once.
Cheers
Sam


<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>
Mike Yu
Ranch Hand

Joined: Nov 17, 2001
Posts: 175
Hi Sam,
Thank you for your reply. Can you give some more details? My PDF files are in HTTP server.
 
 
subject: Access protected folder without password
 
Threads others viewed
access control and jsp
Redirect to the requested page failed using form-based authentication
session variable lost
assign user name and password programmatically
hardcode username and password for windows authentication
WebSphere development made easy
without the weight of IBM tools
http://www.myeclipseide.com