Hi Falko,

You can handle the exception that is thrown when the upload limit is
exceeded by writing a custom exception handler:

public class MyExceptionHandler extends DefaultExceptionHandler {
   // the name of the method can be anything you want
   public Resolution catchUploadTooBig(
        FileUploadLimitExceededException exc,
        HttpServletRequest req, HttpServletResponse resp)
    {
      // do something to notify that this exception occurred, e.g. log it
      // send the user where you want to with a Resolution.
    }
}

Hope that helps.

Cheers,
Freddy
http://www.stripesbook.com

- 
- Hi,
- 
- i noticed a unexpected behavior with FileUploads. If i post content 
- lager than allowed, the DefaultHandler is called instead of the Event 
- Method specified in the <stripes:submit /> Tag.
- I assume this is because the event parameter never reaches the Container 
- because of the size limitation. So how do i handle errors in this case? 
- Is there a way to get notified if a post was limited or arborted?
- 
- thx
-  Falko



-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
Stripes-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/stripes-users

Reply via email to