George Svedloff wrote:
> Is there any way to do something like this (in pseudo-code):
>
> out.println("<html>");
> out.println("<body>");
> out.println("<p>");
> out.println("my data");
> out.println("</p>");
> ... call something so that whatever was written so far is returned to the
> browser and displayed while the page continues generating. (In reality this
> will be used to display a page with a lot of data where data takes some time
> to populate, so the page will be split up into multiple tables.
>
Depending on your servlet engine, out.flush() may do this for you. However, the
engine might still be buffering things that you have no control over -- details
will be engine specific.
One thing you did correctly in your example above, but can be a gotcha if you
forget about it, is to render complete HTML elements. If you had not included
the "</p>" tag, your browser would probably have displayed nothing even if
flushing works, because it would be assuming additional text for that paragraph
is still coming down the pipe.
>
> Thanks,
>
> _____________________
> George Svedloff
Craig McClanahan
___________________________________________________________________________
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff SERVLET-INTEREST".
Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources: http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html