On Mon, Feb 17, 2003 at 07:16:53PM -0500, Hani Suleiman wrote:
> In the servlet, check the user-agent. If it's 'contype', then just sent 
> the content type of the response to application/pdf and return 
> immediately. Also, check if the referrer is not null, and treat it the 
> same way as the contype user-agent. Finally, to serve up the actual 
> pdf, set the content disposition to 'inline; filename=report.pdf', and 
> the content-type to application/pdf

For consistent behavior you also *must* set a proper content-length
header. This of course requires buffering the generated PDF before
sending it to the client.

-Chris


-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
_______________________________________________
Opensymphony-webwork mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/opensymphony-webwork

Reply via email to