I´ve tried 

response.setHeader("Content-Disposition", "inline; filename=\"" + fileName + 
"\""); 

(not attachment for the undermentioned reasons) and the behavior is the same 
this means the filename is not set. In the case of attachment the filename is 
allways set (with and without escaping).






-----Ursprüngliche Nachricht-----
Von: Adrian Cumiskey [mailto:[EMAIL PROTECTED]
Gesendet: Montag, 12. März 2007 10:26
An: fop-users@xmlgraphics.apache.org
Betreff: Re: suggest a filename to a generated pdf


Hi Jan,

I think maybe you might need to quote the value of your filename 
parameter ...


Try this :-

response.setHeader("Content-Disposition", "attachment; filename=\"" + 
fileName + "\"");


Adrian.

Zmitko, Jan wrote:
> Hi,
> 
> I try do suggest a filename to the generated pdf´s. However the PDF should be 
> display automaticly this meand without some further action of the user. 
> 
> This HTTP Header Information works
> 
> response.setHeader("Content-Disposition", "attachment; filename=" + fileName);
> 
> and this does not works
> 
> response.setHeader("Content-Disposition", "inline; filename=" + fileName);
> 
> Is the comibination of the values inline and filename not possible?
> 
> Thanks for any Ideas,
> 
> Jan
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to