Re: problem of open a pdf file on client browser through servlet
"Sharma, Mamta (Cognizant)" <[email protected]>
| Newsgroups | gmane.comp.java.sun.servlet |
|---|---|
| Message-ID | <[email protected]> |
Or
Replace "attachment;" with "inline;" in
response.setHeader("Content-Disposition","attachment; filename=arswww.pdf");
-Mamta
-----Original Message-----
From: Mathias Höggren [mailto:[email protected]]
Sent: Thursday, January 29, 2004 4:06 PM
To: [email protected]
Subject: SV: problem of open a pdf file on client browser through
servlet
Hi!
Remove the line:
response.setHeader("Content-Disposition","attachment; filename=arswww.pdf");
And it will work just fine.
Brgds
Mathias
-----Ursprungligt meddelande-----
Från: A mailing list for discussion about Sun Microsystem's Java Servlet
API Technology. [mailto:[email protected]]För KL OOI
Skickat: den 29 januari 2004 11:22
Till: [email protected]
Ämne: problem of open a pdf file on client browser through servlet
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
___________________________________________________________________________
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
InterScan_Disclaimer.txt
(text/plain, 912 B)
This e-mail and any files transmitted with it are for the sole use of the intended recipient(s) and may contain confidential and privileged information. If you are not the intended recipient, please contact the sender by reply e-mail and destroy all copies of the original message. Any unauthorised review, use, disclosure, dissemination, forwarding, printing or copying of this email or any action taken in reliance on this e-mail is strictly prohibited and may be unlawful. Visit us at http://www.cognizant.com ___________________________________________________________________________ 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