I doubt you want to print to system.out in a servlet (or jsp).

Odds are you want flushBuffer
http://tomcat.apache.org/tomcat-5.0-doc/servletapi/javax/servlet/ServletResponseWrapper.html#flushBuffer()

or flush
http://tomcat.apache.org/tomcat-5.0-doc/jspapi/javax/servlet/jsp/JspWriter.html#flush()

-Tim

Nishant Deshpande wrote:
i'm printing stuff out to system.out in tomcat, but it doesn't get
flushed till the end of the request.

(i've tried system.out.flush())

has anyone got solutions to this problem? i'm not sure if its a tomcat
problem or some OS / jvm thing...


---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to