1 Reply Latest reply on Aug 26, 2004 3:24 AM by Guofeng Zhang

    errorPage directive may be used incorrectly, How to?

    Guofeng Zhang Novice

      The structure of our web application following the structure of Sun's PetStore, that is:

      abody.jsp use the errorPage directive to direct to an error page for error processing when a tag in abody.jsp throws an exception.

      For our web application, the problem is that when an exception is thrown in the tag, myexception.jsp is executed, but the content in myexception.jsp is not sent to the client(browser), only the content in template.jsp is displayed by the browser.

      To solve the problem, I create a simple test web application following the above structure but rewrite all the code required by the structure(to simply the case). The web application works fine. The content in myexception.jsp is sent out to browser, but the content in template.jsp is not sent to browser.

      I donot know why our web application behaves differently. Could some one kindly tell me how to study the problem further(the direction, or pay attention to some part of the web application).

      Thank you very much.

      Platform: JBoss 3.2.5, JDK 1.5beta2