0 Replies Latest reply on May 9, 2006 12:11 PM by Gorkinson Perez Perez

    JBoss 3.2.3 (Tomcat 41) + Catching Exceptions in web.xml

    Gorkinson Perez Perez Newbie

      Hi,

      im trying to catch java exceptions in web.xml:



      <error-page>
      <exception-type> java.lang.Exception</exception-type>
      /errors.jsp?error=Exception
      -----------
      </error-page> ^^^


      but, can i put the exception as a parameter to errors.jsp ??
      I want to put in the parameter all the stack:

      Exception.printStackTrace() or the object Exception

      Take this parameter in error.jsp and print it (or the stack trace) in a html page.

      For example:
      ..../errors.jsp?java.lang.NullPointerException at project.main(test.java:16)


      Thanks for yours coments...