Thank you Mike. Yes I could write a "please wait" and than display all the result. But I would prefer the replay "piece by piece", when possible. Look at this example: http://www.chvk.ch/ this is not in english but easy to use.. this is a meta-catalog which permit you to search a book on different libraries. Just type for example "cinema" in the Titel field (title) and click "Starten" (start search).
You will receive a search result which composed of different html tables, one for each library. As you can see, first comes quickly then others appears later. That's GREAT! I want do that!! :-) Best regards, Stefano -----Messaggio originale----- Da: Mike Cherichetti (Renegade Internet) [mailto:[EMAIL PROTECTED] Inviato: mercoled�, 20. agosto 2003 08:22 A: Tomcat Users List Oggetto: RE: How to send back data without to wait for the complete page. 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]
