Stefano,

You would probably be better off creating a thread to run this lengthy
process in the background and have your Servlet send back a "please wait"
response and refresh automatically after several seconds to check the status
until it completes and you can display all of the results.  If you're set on
doing it though, look for a way to manually flush output from a JSP.  I'm
not sure how to do that or if you can (I'm sure you probably can, I just
haven't ever had the need to do it).  But, be careful if you're displaying
these rows in a table.  Netscape (I'm not sure if this holds true for newer
Gecko powered versions) for example won't render a table until it's received
the whole thing.

Hope that helps,
Mike

-----Original Message-----
From: Unternaehrer Stefano [mailto:[EMAIL PROTECTED]
Sent: Wednesday, August 20, 2003 1:42 AM
To: [EMAIL PROTECTED]
Subject: How to send back data without to wait for the complete page.


Hello all.
Hope the subject explains what I mean.
I even don't know how to call that, so cannot
search it in archives, and don't know if this
behaviour can be setted for a specific jsp page
or at tomcat configuration level.

I have a page wich requires some time to be
executed, you can imagine to receive a table
with different rows, where every row require
some time to be prepared. I would like that
the used doesn't need to wait for the last
row to be ready before to see something,
but instead that it will see the first rows
as soon as possible, than others following
when ready. Is this possible with tomcat?
I'm using version 3.2.1 but can upgrade
when required.

Thank you and best regards,
Stefano
---
Stefano Unternaehrer
IT System Administrator
Sistema bibliotecario ticinese
Bellinzona Ticino Switzerland
[EMAIL PROTECTED]
www.sbt.ti.ch (091 814 1513)

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]






---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to