Web.xml ExceptionType
- by andrew007
Hi,
is it possible to define two sections in the web.xml in order to catch two different exception types:
<!-- general exception -->
<error-page>
<exception-type>**java.lang.Exception**</exception-type>
<location>/generalError.jsp</location>
</error-page>
<!-- specific exception -->
<error-page>
<exception-type>org.myapp.myException</exception-type>
<location>/sessionTimeout.jsp</location>
</error-page>
Does it has any conflict?
THANKS!