why dont you make this long job an asynchronous one that runs even after the
http response has been sent. the confirmation can be sent via an email. you
can use Runtime.exec() to create an asynchronous job.
regards
partha

-----Original Message-----
From: Eric Noriega [mailto:[EMAIL PROTECTED]]
Sent: Friday, January 03, 2003 1:04 PM
To: [EMAIL PROTECTED]
Subject: Re: Query takes 10 minutes...I need to display some
output...how?


    This question crops up every so often.  My best answer is still to
treat the request as a batch request, i.e. program design.  Simply
initiate the request, and provide a link to fetch the data when it
becomes available. (email is always an option as well.)  Holding an http
connection for 10 miniues introduces problems, and any failures might
cause the user to post multiple queries, each one often needing to
complete before being aborted.

Frank Mancini wrote:

> I have a jap page that takes about 10 minutes to run....that is ok...it
> should take that long..
>
> My problem is that I want to display some of the output while the user is
> waiting.
>
> I'm doing document.writes as I'm running the query and it should display,
> but the browser seems to wait until the whole 10 minute process is done
> before displaying anything....Is there anyway to change this and display
> some of the query output while the system is looping thru my query?
>
>
>
>
> _________________________________________________________________
> The new MSN 8 is here: Try it free* for 2 months
> http://join.msn.com/?page=dept/dialup
>
>
===========================================================================
> 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

===========================================================================
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
*********************************************************************
Disclaimer: The information in this e-mail and any attachments is
confidential / privileged. It is intended solely for the addressee or
addressees. If you are not the addressee indicated in this message, you may
not copy or deliver this message to anyone. In such case, you should destroy
this message and kindly notify the sender by reply email. Please advise
immediately if you or your employer does not consent to Internet email for
messages of this kind.
*********************************************************************

===========================================================================
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