On Mon, 21 Oct 2002, Erik Hatcher wrote:

> Date: Mon, 21 Oct 2002 04:24:56 -0400
> From: Erik Hatcher <[EMAIL PROTECTED]>
> Reply-To: Struts Developers List <[EMAIL PROTECTED]>
> To: Struts Developers List <[EMAIL PROTECTED]>
> Subject: Re: cvs commit: jakarta-struts/doc/userGuide
>     building_controller.xml
>
> Also, could someone explain how Struts operates when more than one
> exception handler is provided?  And how it works with exception super
> classes?
>

Currently, you've got the same local/global lookup mechanism that is
supported for forwards (i.e. local exception declarations override the
global ones for a particular class name), but there is no inheritance
based on the exception class itself.  That would be a pretty useful
facility.

A starting point for considering algorithms for this would be to look at
what Tomcat does to figure out which <error-page> declaration to use when
a servlet throws an exception.  I'll have to do some digging to figure out
where that is ...

> Does it search in order to find the first matching exception handler?
> Or the closest in the hierarchy?
>
> I really like the declarative exception handling capability - a nice
> feature!
>
> Thanks,
>       Erik
>

Craig


--
To unsubscribe, e-mail:   <mailto:struts-dev-unsubscribe@;jakarta.apache.org>
For additional commands, e-mail: <mailto:struts-dev-help@;jakarta.apache.org>

Reply via email to