"ennio" <> wrote in message
news: ups.com...
> Hi all.
> I'd like to talk about jsp's. I'm working with tomcat 4.1.
> I would like to know if i can somehow "flush" the output stream of my
> jsp as the output is produced.
> In the following tiny (odd) example:
> ---------CUT---------------
> <html>
> <h1> start </h1>
> <%
> Thread.sleep(10000);
> %>
> <h1> end </h1>
> </html>
> ---------CUT---------------
> I would like to see the "start" string before the thread starts
> sleeping.
> Actually i don't : i get it simultaneously with the "end" string.
> Is there a way to easily achieve this in jsp's? Without
> javascript/dhtml/ajax stuff i mean.
What the client actually sees on their screen is browser dependent. The
browser may, for example, refuse to render anything until the entire page is
downloaded, regardless of what you do on the server side.
- Oliver
|