Or just set the mime type to signal that you're sending a pdf back (sorry
don't know it off the top of my head), and the use the ServletOuputStream to
stream back the pdf?
Kevin Jones
DevelopMentor
www.develop.com
> -----Original Message-----
> From: A mailing list for discussion about Sun Microsystem's Java Servlet
> API Technology. [mailto:[EMAIL PROTECTED]]On Behalf Of Molly
> Qin
> Sent: 17 January 2001 21:59
> To: [EMAIL PROTECTED]
> Subject: Re: opening pdf with servlet
>
>
> Hi,
> Why don't make your links pointing to another servlet, which in turn take
> the pdf filename as the paramter and reads and return the content of the
> file to the user. You can put your pdf files in a secured directory which
> only your servlet can access.
>
> Hope this helps.
>
> Molly
>
> -----Original Message-----
> From: A mailing list for discussion about Sun Microsystem's Java Servlet
> API Technology. [mailto:[EMAIL PROTECTED]]On Behalf Of
> Nathan Atkinson
> Sent: Wednesday, January 17, 2001 4:48 PM
> To: [EMAIL PROTECTED]
> Subject: opening pdf with servlet
>
>
> I have created a servlet that accesses a database full of pdf
> file names and
> writes a list of links to the pdf files accessible to the viewer (the
> servlet checks authentication at login). However, since the servlet
> produces links to the pdf files, anyone can take that url and type it
> straight into a browser to directly access files and bypass the
> authentication check.
>
> Is there a way for the servlet to open the file without the location
> appearing in the "Properties" of that file or in the browser
> heading? I've
> checked the archives, but only found discussions on creating pdf
> files with
> servlets. I already have the files created, I just want to keep them
> secure.
>
> Thanks for the help.
>
> Nathan Atkinson
> Baylor University - Information Technology Center
> 254.710.4724
> mailto:[EMAIL PROTECTED]
>
> __________________________________________________________________
> _________
> To unsubscribe, send email to [EMAIL PROTECTED] and include
> in the body
> of the message "signoff SERVLET-INTEREST".
>
> Archives: http://archives.java.sun.com/archives/servlet-interest.html
> Resources: http://java.sun.com/products/servlet/external-resources.html
> LISTSERV Help: http://www.lsoft.com/manuals/user/user.html
>
> __________________________________________________________________
> _________
> To unsubscribe, send email to [EMAIL PROTECTED] and include
> in the body
> of the message "signoff SERVLET-INTEREST".
>
> Archives: http://archives.java.sun.com/archives/servlet-interest.html
> Resources: http://java.sun.com/products/servlet/external-resources.html
> LISTSERV Help: http://www.lsoft.com/manuals/user/user.html
___________________________________________________________________________
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff SERVLET-INTEREST".
Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources: http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html