This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
The moose likes Tomcat and the fly likes Tomcat - direct access to PDF documents Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Products » Tomcat
Reply locked New topic
Author

Tomcat - direct access to PDF documents

saami sameer
Greenhorn

Joined: Feb 27, 2008
Posts: 2
Hi,
I have got an application deployed on tomcat where user has to login and request for a report for particular month.If the pdf document is available in the 'reports' folder the link will be displayed to user.If the report is not present in the folder then it will be generated and linked will be displayed.
My problem is that if someone knows the path and name of the report he should not be able to access the pdf document by typing the URL directly on browser without logging into the application.
I am using my own authentication method cannot use BASIC authentication method.

Please let me know how this problem can be resolved

Thanks
Ben Souther
Sheriff

Joined: Dec 11, 2004
Posts: 13410

Duplicate of:
http://www.coderanch.com/t/293183/JSP/java/Tomcat-access-PDF-reports-directly

saami sameer,
Please don't post the same question in multiple forums.


Java API J2EE API Servlet Spec JSP Spec How to ask a question... Simple Servlet Examples jsonf
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
 
subject: Tomcat - direct access to PDF documents
 
Similar Threads
Tomcat - access PDF reports directly
Endorsed Directory
tomcat connection
Problem with xml-apis.jar file
Iframe problem