tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Tomcat Random <tomcat.ran...@gmail.com>
Subject PropertyNotFoundException does not work with custom error in web.xml
Date Thu, 09 Jan 2014 19:28:34 GMT
I have a custom error servlet set up in my webapps web.xml file like so:

<error-page>
        <exception-type>java.lang.RuntimeException</exception-type>
        <location>/runtimeExceptionHandler</location>
</error-page>

In JSTL if a property is spelled incorrectly or doesn't exist, the
PropertyNotFoundException will not trigger the error servlet, even though
PNFEs extend RuntimeException. Anyone know why this is?

Tomcat 7.037 on Win7.

TIA
Alec

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message