On Wed, 7 Feb 2001, Christopher K. St. John wrote:

| Gregory Polimis wrote:
| >
| > Question: Can I implement a "blocking" method on the servlet so it can
| > wait for an indeterminate period before calling a method to write
| > the results to the web-client?
| >
|

|  2) Have the servlet return a preliminary result that has
|    a refresh tag. Details in the archives, try searching
|    on "meta refresh".[1] Note that this one isn't guaranteed
|    to work across every browser, but chances are it will
|    work on the ones you care about.

You can also send a space every second or so, and thus giving the client
the feel of a _really_ slow connection (it won't disconnect at all then).
When you have your result, you spool the whole lot.. You could maybe also
use dots, so that the user sees some progress.. You would have to
experiment there, though, since the browser might not show you the dots
because it feels that it need more information before rendering. Top of my
head here: it won't work inside a half-made table, maybe not with <center>
or stuff like that..


--
Mvh,
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