This is the horrible answer : you could call a javascript function in a loop
to continuously request the same servlet and have the servlet send the
message appropriate to its current state each time. However the bandwidth
and server loading that results are obviously prohibitive

what you really want is server push. Roughly speaking you need a client side
java object (eg applet) implementing a listener for an action (eg progress
message changed) that occurs on the server. In this way when the action is
triggered (from wherever) the listener will be notified and react. To
achieve this in a stateless (http) environment is a bit tricky, but I figure
it could be done with some careful session management.
----- Original Message -----
From: <Evan Yang> <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Monday, February 14, 2000 9:26 AM
Subject: Re: write page via Response


>
>
> Thanks for the response.
> I don't mean to show them at the same time,
> but one page at a time in sequence.
> The time delay between pages is controlled by the servlet.
> User just wait till the process finished.
> For example, a lengthy proceess, the servelt will display
> pages to show each stage the process is on, instead of the browser
> post the request to query the process state.
> The put from server is easier to implement then the pull from client.
> Just that the browser seems not too cooperate on this matter !
>
> Thanks.
>
> Evan
>
>
___________________________________________________________________________
> 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

___________________________________________________________________________
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