Return-Path: Delivered-To: apmail-tomcat-users-archive@www.apache.org Received: (qmail 73099 invoked from network); 16 Jan 2008 14:26:41 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 16 Jan 2008 14:26:41 -0000 Received: (qmail 22219 invoked by uid 500); 16 Jan 2008 14:26:20 -0000 Delivered-To: apmail-tomcat-users-archive@tomcat.apache.org Received: (qmail 21815 invoked by uid 500); 16 Jan 2008 14:26:19 -0000 Mailing-List: contact users-help@tomcat.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: "Tomcat Users List" Delivered-To: mailing list users@tomcat.apache.org Received: (qmail 21804 invoked by uid 99); 16 Jan 2008 14:26:19 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 16 Jan 2008 06:26:19 -0800 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of p@pidster.com designates 87.106.82.221 as permitted sender) Received: from [87.106.82.221] (HELO s15243851.onlinehome-server.info) (87.106.82.221) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 16 Jan 2008 14:26:06 +0000 Received: (qmail 14276 invoked from network); 16 Jan 2008 14:25:58 +0000 Received: from host86-145-154-168.range86-145.btcentralplus.com (HELO ?192.168.16.38?) (86.145.154.168) by s15243851.onlinehome-server.info with SMTP; 16 Jan 2008 14:25:58 +0000 Message-ID: <478E13F6.8030004@pidster.com> Date: Wed, 16 Jan 2008 14:25:58 +0000 From: Pid Reply-To: p@pidster.com Organization: Pid Inc User-Agent: Thunderbird 2.0.0.9 (Macintosh/20071031) MIME-Version: 1.0 To: Tomcat Users List Subject: Re: PDF problem on IE from JSP References: <14879788.post@talk.nabble.com> In-Reply-To: <14879788.post@talk.nabble.com> X-Enigmail-Version: 0.95.6 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org 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: users-unsubscribe@tomcat.apache.org For additional commands, e-mail: users-help@tomcat.apache.org