Fernando:
You need to set your mime type/subtype to "application/pdf". Assuming your
browser has it's plugin configured, then it's just a matter of sending the
contents of the PDF to the PrintWriter in the servlet.
We do this in our EPortal product, works fine for us.
Drop me a line off-list if you need more details, I'd be happy to try to
help.
Mike
Javacorporate Ltd
http://www.javacorporate.com
> -----Original Message-----
> From: A mailing list for discussion about Sun Microsystem's Java Servlet
> API Technology. [mailto:[EMAIL PROTECTED]]On Behalf Of
> Fernando Saldanha
> Sent: Saturday, January 15, 2000 4:38 PM
> To: [EMAIL PROTECTED]
> Subject: .PDF files
>
>
> Does anyone know how can I display a .PDF file in my browser using a
> servlet? I have the file ready in .PDF format, it is just a matter of
> displaying it.
>
> Thanks.
>
> Fernando
>
> __________________________________________________________________
> _________
> 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