Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsWhite Papers
Discussion GroupsFirst AidDatabasesJavaBeansGUIJava 3DVirtual MachineCORBASecurityToolsGeneral
Java DirectoryOpen Source ProjectsSample Book ChaptersUser GroupsWeb Resources
Related Topics
Databases.NETMore Topics ...

Java Forum / General / September 2006

Tip: Looking for answers? Try searching our database.

Help needed on error on pdf download using URL

Thread view: 
pramodr - 16 Sep 2006 12:20 GMT
Hi group,

I have setup security for a particular folder in Tomcat server (4.0.6),
which contains pdf files and could be accessed through basic password
authentication implemented through Java Authenticator class. Now my
problem is that I am unable to open the pdf using the URL, like
http://myserver:8900/examples/pdffolder/R1.pdf. I use IE 6.0 which says
the site cannot be opened.

Any guidence on this will be greatly appreciated.

Pramod R
pramodr - 16 Sep 2006 12:37 GMT
Forgot to mension:

The security profile is added in web.xml as follows

 <security-constraint>
     <display-name>Example Security Constraint</display-name>
     <web-resource-collection>
        <web-resource-name>Protected Area</web-resource-name>
    <!-- Define the context-relative URL(s) to be protected -->
        <url-pattern>/examples/*</url-pattern>
    <!-- If you list http methods, only those methods are protected -->
    <http-method>DELETE</http-method>
        <http-method>GET</http-method>
        <http-method>POST</http-method>
    <http-method>PUT</http-method>
     </web-resource-collection>
     <auth-constraint>
        <!-- Anyone with one of the listed roles may access this area
-->
        <role-name>tomcat</role-name>
    <role-name>role1</role-name>
     </auth-constraint>
   </security-constraint>

> Hi group,
>
[quoted text clipped - 8 lines]
>
> Pramod R


Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2009 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.