tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
Subject Question about Buffering
Date Thu, 07 Dec 2000 18:19:03 GMT

I have a simple jsp that turns off buffering, and writes to the output stream,
then loops for 30 seconds and writes again to the output stream (source at the

My expectation was that, since there was no buffering that as I wrote to the
stream, the result would print to the browser as the script ran, then 30 seconds
later the rest of the text would print.  Obviously this is a misconception, the
jsp executes and when it is complete it sends everything.

My question about the buffer is this, what if the buffer is filled, but the
script is still processing?  Is a second buffer filled or 3rd, etc. until the
processing is completed and then all buffers get combined and sent in the
stream?  Thanks, and apolgoies if the question is overly-simplistic.


<%@page import="java.util.*" %>
<%@ page buffer="none" %>
long lDelay = 1000*30;
                    catch(InterruptedException e)

NOTICE:  The information contained in this electronic mail transmission is
intended by Convergys Corporation for the use of the named individual or entity
to which it is directed and may contain information that is privileged or
otherwise confidential.  If you have received this electronic mail transmission
in error, please delete it from your system without copying or forwarding it,
and notify the sender of the error by reply email or by telephone (collect), so
that the sender's address records can be corrected.

View raw message