Well, the original context was in that of WW1.3 as opposed to WW2, but
that would work as well, and certainly be more flexible, I suppose, with
nicer behaviour towards those who already implemented the pattern in their
own actions.

On Mon, 3 Nov 2003, Chris Nokleberg wrote:

> 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
>

-------------------------------------------------------------------
Joseph B. Ottinger                         http://enigmastation.com
IT Consultant                                [EMAIL PROTECTED]
J2EE Editor - Java Developer's Journal   [EMAIL PROTECTED]



-------------------------------------------------------
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