tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Daniel Barclay <Daniel.Barc...@digitalfocus.com>
Subject Re: Document cacheing - the story thus far.
Date Wed, 11 Oct 2000 18:40:13 GMT
Kitching Simon wrote:
> 
....
>         OK, I've looked at our code again; we have a
>         similar need to flush data to the client, as we
>         want to output progress messages in between
>         calling a bunch of time-consuming business
>         processes. I found that instead of a simple
>         flush, we have:
> 
>         void flushPrintWriter( javax.servlet.jsp.JspWriter jw ) throws
> java.io.IOException
>         {
>             for ( int i = 0; i < 1000; i++ )
>                 jw.print(" ");
>             jw.flush();
>         }

Aren't all those extra space going to break something (like correct
content lengths for keep-alive connections)?  Or does something else
prevent that problem?

Daniel
-- 
Daniel Barclay
Digital Focus
Daniel.Barclay@digitalfocus.com

Mime
View raw message