Skip to Main Content

Java EE (Java Enterprise Edition) General Discussion

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Proper way of Flushing the Output partially in a Servlet

843842Dec 9 2009 — edited Dec 9 2009
I have this servlet that creates some worker threads and then waits for them to finish to output its results.

But I would like to be able to output the title of the servlet page, something like "Processing.." and then, when each thread returns, output its result - and not wait for the whole thing to finish to print it all at once.

How do I set the JSP-parameter "autoflush" in a Servlet? Calling out.flush() after each out.print() is doing me no good.

Any hints?
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Jan 6 2010
Added on Dec 9 2009
6 comments
298 views