This content has been marked as final. Show 3 replies
it should be possible if you can intermittently flush() that writer.
However the browser may not display anything until the HTML is complete.
I would start by writing directly to the response without any of those appender files, say just reading a long file from disk and writing it out.
How do you plan to display this to the browser? If as HTML then you can construct a structure that hints to the browser to start displaying data as it gets it e.g fixed table layout.
Am also not sure about the approach you are taking for this. What if there is no data written for a period of time? Request/Response is not best suited for that. Maybe you should consider websockets for this?