Just to be sure. Have you checked out this?

http://commons.apache.org/fileupload/faq.html#read-timeout

Martijn

On Tue, 2008-07-15 at 20:21 -0700, Angelo Chen wrote:
> Hi Martijn,
> 
> I'll give this a try, thanks. it is kind of difficult to test this situation
> in IDE, is there a way to simulate a time out in Tomcat? 
> 
> 
> Martijn Brinkers (List)-2 wrote:
> > 
> > Have you tried to create a RequestExceptionHandler and catch the
> > FileUploadBase.IOFileUploadException? You can then redirect to a page
> > telling the user that there was a timeout
> > 
> > See for an example of RequestExceptionHandler:
> > 
> > http://wiki.apache.org/tapestry/Tapestry5RedirectException
> > 
> > 
> > Martijn Brinkers
> > 
> > On Tue, 2008-07-15 at 18:53 -0700, AngeloChen960 wrote:
> >> Hi Macus,
> >> 
> >> Thanks for replying.  I think that will improve, but I'm trying add code
> >> to
> >> handle those unsuccessful file uploads when users have a slow Internet
> >> connection, I just want to inform the user slow connection, try it later.
> >> 
> >> Angelo
> >> 
> >> 
> >> Marcus-11 wrote:
> >> > 
> >> > Hi Angelo,
> >> > 
> >> > what if you increase session timeout in web.xml?
> >> > 
> >> > Marcus
> >> > 
> >> > 
> >> 
> > 
> > 
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> > 
> > 
> > 
> 


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to