Julie Kim a �crit :
>
> Hi, all.
>
> I'm writing one servlet which calls one application that takes long
> time(more than 5 minutes). When I called the servlet on a browser I got an
> error message "The page could not found" because the application ran so long
> time. Even though I got the message the application was still running and
> the result was correct.
>
> I don't want user to see that kinds of error messages so, I want to print
> out "Please wait for minutes...." on user browser.
Init the calculation into init() or in doGet, but just after :
Display a "Please wait" and quit doGet/service.
***The servlet will continue the calculation**** (well, find how to do it)
Then, when the user reload the page, just display the same message
or the results if they are ok.
You can also include an automatic refresh/reload
All explained in Java Servlet PRogramming (www.oreilly.com -> Java -> Servlets)
Denis
--
Denis Bucher, / [EMAIL PROTECTED] T�l. +41-22-8000625 \ Internet
Horus Networks / horus-networks.com Fax: +41-22-8000622 \ Services
/ http://www.horus.ch US Fax: (508) 437-1261 \ Provider
___________________________________________________________________________
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