problem of open a pdf file on client browser through servlet

KL OOI <[email protected]>
Newsgroups gmane.comp.java.sun.servlet
Message-ID <[email protected]>
Hi all,

I have a servlet which send a pdf file to client browser.
I have the below code inside my servlet.
   response.setContentType("Content-Type: application/pdf");
   response.setHeader("Content-Disposition","attachment;
filename=arswww.pdf");

But this will pop up a dialog whether want to open, save or cancel the file.

How can I make it open the pdf in the client browser without pop up the
dialog?

Thanks.


Best regards,
KL OOI

___________________________________________________________________________
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
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.