Joseph Ottinger wrote:

> What I'd thought of was adding an extra method to Action and
> ActionSupport. The Action method's signature might look like this:
> 
> public String handleException(Throwable t) throws Throwable;
> 
> The ActionSupport implementation:
> 
> public String handleException(Throwable t) throws Throwable {
> throw t;
> }

I like it, but I would make it an interface:
  public interface ExceptionHandler extends Action {
      String handleException(Throwable t);
  }

and then have an interceptor which will catch the exception and do the right
thing if the action instanceof ExceptionHandler.

Chris




-------------------------------------------------------
This SF.net email is sponsored by: SF.net Giveback Program.
Does SourceForge.net help you be more productive?  Does it
help you create better code?   SHARE THE LOVE, and help us help
YOU!  Click Here: http://sourceforge.net/donate/
_______________________________________________
Opensymphony-webwork mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/opensymphony-webwork

Reply via email to