Chris,

--- On Wed, 4/13/11 at 1:11 PM, Christopher Schultz 
<ch...@christopherschultz.net> wrote:

> Basically, I want two defaults.
> 
> If the servlet spec allowed for <error-page> to
> include a <servlet-name>
> filter, that's what I would use. But it doesn't :(
> 

Would an Exception marker interface help to differentiate Servlet and other 
Exceptions?

A Servlet could conditionally throw Exceptions that implemented a given marker 
interface.

An <error-page> JSP could use instanceof to check for marker interface(s) and 
conditionally handle presentation of the Exceptions.

- Bob



---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org

Reply via email to