0 Replies Latest reply on Jan 28, 2003 4:32 PM by Julio Cesar

    web.xml <error-page> doesn't work on -JBoss3.0+tomcat?

    Julio Cesar Newbie

      Hi all,
      I added the error handling configuration in the web.xml of my application, something like this:
      <error-page>
      <error-code>500</error-code>
      /error-page.jsp
      </error-page>
      <error-page>
      <exception-type>javax.servlet.ServletException</exception-type>
      /error-page.jsp
      </error-page>
      However the ServletException errors are still being displayed in the default error page of Tomcat.

      I use JBoss 3.0+Tomcat and Struts framework.
      some Action Servlets throw an ServletException that is displayed on the default error page of tomcat when an error occurs. But I want it be displayed in another page(error-page.jsp). What else should I do to achieve that?

      Thanks for your comments.

      Regards
      Cesar