What we do is have a page generated immediately with a "Processing, Please
Wait" message. In it's header we put a redirect to a Get on another servlet
and a 'refresh' setting of 10 seconds. This causes the page to check with
the new servlet every 10 sec or so (you can even put the current time so
that the user sees the page changing).
When the processing servlet completes its stuff we store the result in a
database table. The second servlet which is being checked every 10 seconds
looks in the database for the result, and when it finds it, it displays it
and looses the refresh.
_____
Richard Gill
Director 3KB.COM LIMITED
Suite 2 Level 1, 10 Turner Street,
Po Box 74-307, Auckland, New Zealand
Tel: +64-9-379-7574 Fax: +64-9-379-7821
Mob: +64-21-709-071 Email: [EMAIL PROTECTED]
Web: www.3kb.com
> -----Original Message-----
> From: A mailing list for discussion about Sun Microsystem's Java Servlet
> API Technology. [mailto:[EMAIL PROTECTED]]On Behalf Of
> Ashish Adhiya
> Sent: Monday, 26 March 2001 8:54 p.m.
> To: [EMAIL PROTECTED]
> Subject:
>
>
> I have a servlet that accepts input from the user, and
> then calls another servlet that performs an extremely
> long process and is then required to display the
> results on the browser.
> However, since this process is a long one, the browser
> eventually times out while executing the second
> servlet. The process however, continues at the
> background, but I am not able to see the results.
>
> How is it possible to display a temporary page saying
> that 'processing is underway' and then eventually
> display the results ?
>
>
> __________________________________________________
> Do You Yahoo!?
> Get email at your own domain with Yahoo! Mail.
> http://personal.mail.yahoo.com/
>
> __________________________________________________________________
> _________
> 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