You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by stephen chan <st...@netnation.com> on 2003/04/25 02:27:51 UTC
in web.xml -- tomcat 4.1.24
Hello,
I am trying to get <error-page> <exception-type> in my web.xml working
in tomcat 4.1.24.
When I was using tomcat 3.x.x all I had to do was:
[1] in web.xml put
<error-page>
<exception-type>java.lang.NullPointerException</exception-type>
<location>/MyMappedServlet</location>
</error-page>
[2] in any of my servlet
throw a new java.lang.NullPointerException
The above will bring me to /MyMappedServlet
Now, this worked for me in Tomcat 3.x.x, but not in the lastest 4.1.24
Somebody throw me a bone please.
Thanks
Stephen
---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org