Return-Path: Delivered-To: apmail-jakarta-tomcat-user-archive@jakarta.apache.org Received: (qmail 26725 invoked by uid 500); 21 Aug 2001 20:37:39 -0000 Mailing-List: contact tomcat-user-help@jakarta.apache.org; run by ezmlm Precedence: bulk Reply-To: tomcat-user@jakarta.apache.org list-help: list-unsubscribe: list-post: Delivered-To: mailing list tomcat-user@jakarta.apache.org Received: (qmail 26718 invoked from network); 21 Aug 2001 20:37:38 -0000 Received: from sparrow.uchicago.edu (HELO sparrow.secns.uchicago.edu) (128.135.168.100) by h31.sny.collab.net with SMTP; 21 Aug 2001 20:37:38 -0000 Received: from skate ([128.135.99.2]) by sparrow.secns.uchicago.edu over TLS secured channel with Microsoft SMTPSVC(5.0.2195.2966); Tue, 21 Aug 2001 15:37:15 -0500 Message-ID: <014001c12a81$1038cbf0$02638780@secns.uchicago.edu> From: "Jonathan Eric Miller" To: References: <009901c12687$ba2c7240$02638780@secns.uchicago.edu> <3B82A0C1.1305B1CD@jmatica.com> Subject: Re: Bug in ServletResponse.flushBuffer() in Tomcat 4.0b7? Date: Tue, 21 Aug 2001 15:37:15 -0500 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 5.50.4807.1700 X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4807.1700 X-OriginalArrivalTime: 21 Aug 2001 20:37:15.0526 (UTC) FILETIME=[10461260:01C12A81] X-Spam-Rating: h31.sny.collab.net 1.6.2 0/1000/N Cool, thanks, I appreciate it. I'll give it a try. If this works, that's good investigative work. Jon ----- Original Message ----- From: "Mauro Bertapelle" To: Sent: Tuesday, August 21, 2001 12:56 PM Subject: Re: Bug in ServletResponse.flushBuffer() in Tomcat 4.0b7? > Jonathan, > > this was already discussed in this list some times ago.. > > Regards, > > mauro > -- > > > Scott, > > > > I've finally got it. > > The problem with Internet Explorer is that, no matter > > how many flavors of no-cache, cache-no, no-cache-thanks, etc.. > > you put in your header, it'll not output anything until it > > has read at least 256 characters: > > > > public void doPost(HttpServletRequest request, HttpServletResponse response) > > throws ServletException, IOException { > > > > response.setContentType("text/html"); > > response.setIntHeader("Expires", -1); > > response.addHeader("Cache-Control", "no-cache"); > > response.addHeader("pragma", "no-cache"); > > PrintWriter out = response.getWriter(); > > out.println(""); // 7 > > out.println("Title"); // 34 > > out.println(""); // 48 > > out.println(" phase 1
"); // 255, doesn't display till end of page > > out.println("----------------------------------> phase 1
"); // 256, start display immediately > > > > response.flushBuffer(); > > > > try { > > Thread.sleep(5000); > > } catch (Exception e) { > > }; > > out.println("phase 2"); > > out.println(""); > > out.println(""); > > out.close(); > > } > > > > Regards, > > > > Mauro Bertapelle > > JMatica Srl > > mauro.bertapelle@jmatica.com > > -- >