Do you have to output your data in a table. Maybe better format it with
spaces within pre tags. That way the browser can render it right away. If
it is in a table all the data has to be received before it can get rendered.
Patrick
-Original Message-
From: Mufaddal Khumri [mailto:[EMAIL PROTECTED]
Sent: Monday, October 27, 2003 1:17 AM
To: Tomcat Users List
Subject: Problem receiving huge text in IE
Hi,
Am using Tomcat 4.1.18. I have this problem on IE on Windows and Mac.
I am trying to get a huge amount of text from the database and want to
stream it to the user/s browser. Netscape and Safari work fine and
start displaying the text as soon as they start receiving it. IE waits
for the full text to reach it and then displays the complete text at
once. How do I get it to behave like netscape and safari where it
starts displaying what it has already received ?. My code for doing
this is below:
response.setContentType(text/html);
response.setHeader(Cache-Control, no-cache);
response.setHeader(Expires, 0);
response.flushBuffer();
PrintWriter out = response.getWriter();
out.println(htmlHead/Head);
out.println(body);
out.println(table width='100%');
for(...)
{
out.println(BIG lump of text);
out.flush();
response.flushBuffer();
}
out.flush();
response.flushBuffer();
Does anyone know why i am getting this problem with IE ? Have I to
tweak something in my code or tomcat webapp settings ?
Thanks.
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]