Hi Christian. If you set content-disposition, attachment. Web Browser will open save as dialog. You must put HttpServletResponse.setHeader("Content-Disposition","inline; filename=Report.pdf ")
This works for me. regards -----Original Message----- From: Christian Geisert [mailto:[EMAIL PROTECTED] Sent: viernes, 15 de noviembre de 2002 16:58 To: [EMAIL PROTECTED] Subject: Re: HttpServletResponse.setHeader("Content-Disposition","attachment; filename=Report.pdf ") [EMAIL PROTECTED] wrote: > > Hello with all! > > I have a servlet in which I send a PDF to the navigator while > writing > > HttpServletResponse.setContentType("application/pdf "); > HttpServletResponse.setHeader("Content-Disposition","attachment; > filename=Report.pdf "); > > And the navigator twice opens the page of download of file. > Why? I would like to know if it is about option of configuration of > navigator IE and how to use the HttpServletResponse.setHeader(. method > correctly.) with good options. See the FAQ at http://xml.apache.org/fop/faq.html#part-N10445 Christian --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]