Jonadan wrote:
Hi,
I am generating PDF documents from JSP directly to output stream. However
when I try it from IE, it does not work properly. Sometime nothing happens.
Sometimes, show data corruption error. Sometimes connection error, etc.
I suspect it may be something to do with partial content reading from IE and
Tomcat does not support or my JSP does not take care, etc.
Anyone had the same problems before?
Jonadan.
Yes, it's pretty common, especially if you're using SSL. Search google.
The best solution I found was to avoid sending the official PDF
mimetype, send a generic one instead, and force it to download*.
Something like:
response.setContentType("application/x-download-file");
response.setHeader("Content-Disposition",
"attachment; filename=" + filename + "; size=" + content.length );
(Also because the Acrobat browser plugin used to take so long to start
up, but I'm not sure if that's still true.)
p
---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]