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("<html><Head></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]



Reply via email to