Jack,

Why not just print() a message back to the page that got the request? You
can make its appearance conditional on something about the client input (my
example is != null, but this will only work the first time; could check for
something that will happen every time data is entered, or not happen every
time data is not entered). The following should add a message at the bottom
of whatever is already on the page, where <value> is set to something in
the client input:

        ServletOutputStream out = response.getOutputStream();
        PrintStream confirmation = new PrintStream(out);
        if (value != null) confirmation.print("Please wait . . .");

Beast regards,

        Dave J.

At 05:23 PM 8/8/00 +0800, you wrote:
>Hi,
>
>        I like to know if it is posible to display a message "Please wait
while still loading" to the client before sending the actual result from
the servlet, i want to do this because some generated pages will take a
long time to be displayed due to processes done by the servlet, i want to
display that message so that the user will know that something is still
happening in the server. sendredirect method will not do, any other method?
Thanks
>
>jack
>
>___________________________________________________________________________
>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