3 Replies Latest reply on Apr 3, 2005 2:20 PM by spoonman464

    exception-type ignored in web.xml

    Bruno Collet Newbie

      Hi all,
      I am trying to redirect the user to an error page in case of error. It works when using error-code but not exception-type.

      <error-page>
       <error-code>500</error-code>
       <location>/error.jsp</location>
       </error-page>
       <error-page>
       <exception-type>java.lang.Throwable</exception-type>
       <location>/error.jsp</location>
       </error-page>
      

      For example, it will work when an error 500 occurs but not when an ordinary exception occurs. I also tried with concrete exception classes, without success.
      Any help would be appreciated :)