You are viewing a plain text version of this content. The canonical link for it is here.
Posted to fop-users@xmlgraphics.apache.org by Miguel Angel Busto <mi...@kewill.com> on 2002/11/26 09:04:20 UTC

RE: HttpServletResponse.setHeader("Content-Disposition","attachme nt; filename=Report.pdf ")

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:christian.geisert@isu-gmbh.de]
Sent: viernes, 15 de noviembre de 2002 16:58
To: fop-user@xml.apache.org
Subject: Re:
HttpServletResponse.setHeader("Content-Disposition","attachment;
filename=Report.pdf ")


j-kong@chronopost.fr 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: fop-user-unsubscribe@xml.apache.org
For additional commands, e-mail: fop-user-help@xml.apache.org