Web.xml ExceptionType

Posted by andrew007 on Stack Overflow See other posts from Stack Overflow or by andrew007
Published on 2010-04-06T08:46:45Z Indexed on 2010/04/06 8:53 UTC
Read the original article Hit count: 217

Filed under:
|
|

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!

© Stack Overflow or respective owner

Related posts about java

Related posts about web