Proper way of Flushing the Output partially in a Servlet
843842Dec 9 2009 — edited Dec 9 2009I 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?