What happens when you try to catch it in the submit listener? Does
your catch block not run? Or are you trying to redirect directly from there?

        If memory serves, if you want to navigate via cycle.activate() you
have to do it in the form listener method, not the submit button's listener
message.

        Altnerately, did you try catching the applicaitonruntimeexception
and re-throwing a PageRedirectException?

        --- Pat

> -----Original Message-----
> From: Karen [mailto:[EMAIL PROTECTED]
> Sent: Thursday, August 18, 2005 8:48 PM
> To: 'Tapestry users'
> Subject: File upload size problem
> 
> Hi,
> 
> I'm using Tapestry's Upload component to upload files. It throws
> org.apache.commons.fileupload.FileUploadBase$SizeLimitExceededException
> when
> the upload file size exceed the allow range. What I need to do is to turn
> that exception to a more meaningful message before display to the HTML
> page.
> 
> I tried to catch the ApplicationRuntimeException from the submit
> listener's
> method, but to no avail.
> 
> How to catch the ApplicationRuntimeException when this happen? Please
> advise.
> 
> Thank you.
> 
> Regards,
> Karen
> 
> ---------------------------------------------------------------------
> 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