One common way to handle this is to process the lengthy request in a
separate thread.  Create a page that contains a graphic saying something to
the effect "One Moment Please..." and set the Meta Refresh tag to 1 minute.
When the request comes back in, check to see whether the thread has
completed.  If it has, send back the results, if it hasn't send another "One
Moment Please..."/Meta Refresh page.

Of course 10-minutes is a very long time to wait, and unless it's specified
that the request could take that long, most people will give up long before
then.
    (*Chris*)

----- Original Message -----
From: "ShriKant Vashishtha" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Sunday, March 17, 2002 10:29 PM
Subject: [JSP-INTEREST] Request time out problem........


> Hi All,
>
> At present I am facing the request time out problem while the request is
> executing on the server side.
>
> I am running a task of importing thousands of transactions at once into
> database, and it takes around 10 minutes to complete it. But before
> showing the response page to the user, request gets timedout. I don't
> think that the strategy will be to increase the browser timeout. Is
> there any alternative solution available.
>
> Please help!!!!!!!!
>
> -ShriKant
>
>
===========================================================================
> To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff
JSP-INTEREST".
> For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST
DIGEST".
> Some relevant FAQs on JSP/Servlets can be found at:
>
>  http://archives.java.sun.com/jsp-interest.html
>  http://java.sun.com/products/jsp/faq.html
>  http://www.esperanto.org.nz/jsp/jspfaq.jsp
>  http://www.jguru.com/faq/index.jsp
>  http://www.jspinsider.com


_________________________________________________________
Do You Yahoo!?
Get your free @yahoo.com address at http://mail.yahoo.com


===========================================================================
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST".
Some relevant FAQs on JSP/Servlets can be found at:

 http://archives.java.sun.com/jsp-interest.html
 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.jsp
 http://www.jguru.com/faq/index.jsp
 http://www.jspinsider.com

Reply via email to