Re: Browser timed-out while action still going on

2002-01-08 Thread Ted Husted

Hmmm, I thought I replied to this before, but see no record ...

Thinh Doan wrote:
> 
> Hello everyone,
> 
> I have a file upload process that could take up to 1 hour to finish.  It
> always returns some ActionErrors to the input page when done.  I have the
> following questions:
> 
> 1) I observed that the browser timed-out and return to the input page but
> the upload process still running in the background.  What happened if the
> session timed-out, does the process gets stopped? (I could tell you
> empirically but it's still going on right on)


I believe the HTTP process would continue regardless of whether the Java
Servet session timed out. Two different players. 



> 2) if the session has not timed-out and the user browses around, would the
> list of ActionErrors be returned to the user session when the action is
> done?  I need to preserve the Actin Errors somehow.


The ActionErrors are returned through the request context.



> 3) Is there any way to display progress status?


Not a real good way. People play sometimes tricks with the HTTP refresh
meta-tag. 



> 4) Can the action spawn another thread for the upload process and return
> control back to the user and let the process thread doing its thing?


Yes, I believe you can. And then use the HTTP refresh meta-tag to poll
an Actin that checks on a object in the user's session that is watching
the progress of the process thread. 


 
> Thank you for your time and response.
> 
> Thinh
> 
> --
> To unsubscribe, e-mail:   
> For additional commands, e-mail: 

-- Ted Husted, Husted dot Com, Fairport NY USA.
-- Building Java web applications with Struts.
-- Tel +1 585 737-3463.
-- Web http://www.husted.com/struts/

--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Browser timed-out while action still going on

2002-01-04 Thread Thinh Doan

Hello everyone,

I have a file upload process that could take up to 1 hour to finish.  It
always returns some ActionErrors to the input page when done.  I have the
following questions:

1) I observed that the browser timed-out and return to the input page but
the upload process still running in the background.  What happened if the
session timed-out, does the process gets stopped? (I could tell you
empirically but it's still going on right on)

2) if the session has not timed-out and the user browses around, would the
list of ActionErrors be returned to the user session when the action is
done?  I need to preserve the Actin Errors somehow.

3) Is there any way to display progress status?

4) Can the action spawn another thread for the upload process and return
control back to the user and let the process thread doing its thing?

Thank you for your time and response.

Thinh



--
To unsubscribe, e-mail:   
For additional commands, e-mail: