You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Ka...@mn.man.de on 2000/11/10 11:24:24 UTC

in web.xml

I have to write the following in the web.xml-File:

<error-page>
           <exception-type>java.lang.Exception</exception-type>
           <location>/exception.html</location>
</error-page>

But the tomcat don't catch the exception and don't show the
exception.html-Page.

My tomcat have no problem with the following:
<error-page>
      <error-code>500</error-code>
      <location>/ex1.html</location>
</error-page>


Hwo can I catch a java exception type?

Thank you in advance!


Katrin Seiffert