Hello,

I am using FOP embedded in a servlet.  I use the following two lines to
inform the browser that the result stream is a PDF file:


response.setContentType("application/pdf");
response.setHeader("Content-disposition", "attachment; filename
=\"report.pdf\"");


Upon receiving the PDF file, Internet Explorer will launch the File
Download dialog that asks "What would you like to do with this file?" with
the options being Save or Open.

This is not the behavior I want.  I want Internet Explorer to simply launch
the Acrobat plugin to view the PDF within the context of the browser.  This
is what IE does if there is simply a link in the HTML that points to
"file.pdf."  Coincidentally, Mozilla launches the plugin to view the PDF,
as desired.

How can I set the content type and/or the header so that IE launches the
Acrobat plugin rather than saving the PDF to file or launching Acrobat
externally?



Reply via email to