On Sun, 10 Oct 2004, Chris Pratt wrote:

| Or you can fake it like most of the web sites do and pop up a window with an
| animated gif file in the onsubmit event handler of the <form> and close the
| window in the onunload event handler of the <body> tag.  That way it pop's
| up and stays there until the response is ready to be processed by the
| browser, then goes away by itself.  It's a totally client side solution that
| takes no cycles on the server side.
|   (*Chris*)

I'm not sure if this have been mentioned, but another common way to do
this, is to supply the user with enough info so that -most- browsers can
render it (a finished table or similar), committ (flush) this to the
stream (thus have it rendered at the user's side), then feed the user
a-byte-per-second (spaces) (with committs), while you have another thread
doing your dirty-work. Then, when the worker-thread pings you (the
servlet-thread), you send the final javascript-bit that refreshes the page
to either a specially designed url that includes some key/cookie, or just
use sessions, and you show the result.

Endre

___________________________________________________________________________
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

Reply via email to