Glad you found a solution. I'm on a project involving tomcat 4 and pdfs too so I would probably have stumbled upon the same problem eventually.
/Nicolas Jay Teo wrote: > > Nicolas, > > Thanks for you response. > > I just solved my problem (or at least found a workaround). I think > it's an IE6 bug. > > After posting my original message, it was clear that the only > difference in the response header was "HTTP/1.0" vs "HTTP/1.1". So I > configured Tomcat 4 to use the HTTP 1.0 Connector and now ie6 is happy. > > One more thing, right after posting my question, I realized the iText > mailing list may not be the most appropriate place to post this > question. I apologize if that's the case. > > > -j > > > > > > Nicolas Ivering wrote: > >> Is it ie6 or acroread saying it can't open the file? It it is >> acroread it may be that tomcat 4 is sending as ASCII instead of binary. >> >> Best Regards >> Nicolas Ivering >> >> Jay Teo wrote: >> >>> >>> Hi, >>> >>> I have been using iText to generate PDF from Java servlets for some >>> time now and it has worked great until I upgraded Tomcat from 3.3 to >>> 4.0. >>> >>> After the upgrade, it's still working fine with IE 5.5. IE 6.0, >>> however, would pop up a window asking the user if he wants to Open >>> or Save the file. And regardless of which one you pick, it would say >>> it's unable to open. >>> >>> Using a program called JSnoop to trace the HTTP communication >>> between IE and Tomcat, I got the following headers: >>> >>> >>> ----- (TOMCAT 3.3) ----- >>> >>> HTTP/1.0 200 OK >>> Pragma: no-cache >>> Expires: Thu, 01 Jan 1970 00:00:00 GMT >>> Cache-Control: no-cache >>> Content-Type: application/pdf >>> Content-Length: 12543 >>> Servlet-Engine: Tomcat Web Server/3.2.1 (JSP 1.1; Servlet 2.2; Java >>> 1.3.0; Linux 2.2.16-22 i386; java.vendor=Sun Microsystems Inc.) >>> >>> >>> ----- (TOMCAT 4.0.3) ----- >>> >>> HTTP/1.1 200 OK >>> Content-Type: application/pdf >>> Content-Length: 12543 >>> Date: Mon, 22 Apr 2002 14:56:46 GMT >>> Pragma: no-cache >>> Server: Apache Tomcat/4.0.3 (HTTP/1.1 Connector) >>> Cache-Control: no-cache >>> Expires: Thu, 01 Jan 1970 00:00:00 GMT >>> >>> ------------------------------------------ >>> >>> >>> As you can see, they both have "Content-Type" set to >>> "application/pdf". So what is wrong here? >>> >>> I'm at a loss, any help/suggestions would be appreciated. >>> >>> >>> >>> -j >>> >>> >>> >>> >>> _________________________________________________________ >>> Do You Yahoo!? >>> Get your free @yahoo.com address at http://mail.yahoo.com >>> >>> >>> _______________________________________________ >>> iText-questions mailing list >>> [EMAIL PROTECTED] >>> https://lists.sourceforge.net/lists/listinfo/itext-questions >> >> >> >> >> >> >> >> _______________________________________________ >> iText-questions mailing list >> [EMAIL PROTECTED] >> https://lists.sourceforge.net/lists/listinfo/itext-questions >> > > _______________________________________________ iText-questions mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/itext-questions