Hi Antony,

>     Where I can catch the
> org.apache.struts.upload.MaxLengthExceededException thrown when the file
> size exceeds in Struts 1.0. I need to a message and redirect user to the
> previous page. I can catch it in web.xml which catches the exception. But it
> seems not to be an elegant solution. I want to catch it somewhere in the
> code and log information about the user. This is the stack trace.
If you are using Servlet 2.3 or higher, you could do it in a filter. 
Otherwise, sub-classing ActionServlet should work.

Best regards,
-- Shinobu Kawai

--
Shinobu Kawai <[EMAIL PROTECTED], [EMAIL PROTECTED]>




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

Reply via email to