In Tomcat 4.0 you can display specific error pages based on error codes as
well as exceptions. You would specify your configuration in the server's
web.xml file. Here is an example from the Tomcat 4.0 tester application:

----
  <error-page>
    <error-code>412</error-code>
    <location>/ErrorPage02</location>
  </error-page>
  <error-page>
    <exception-type>org.apache.tester.TesterException</exception-type>
    <location>/ErrorPage04</location>
  </error-page>
----

Justy

----- Original Message -----
From: "Shahata, Ashraf" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Thursday, February 07, 2002 5:31 AM
Subject: Re: Catching a 500 error


> Im using tomcat... any idea how could I do this on either tomcat/Weblogic
>
> Thanks
>
> -----Original Message-----
> From: Joe Cheng [mailto:[EMAIL PROTECTED]]
> Sent: 06 February 2002 20:16
> To: [EMAIL PROTECTED]
> Subject: Re: Catching a 500 error
>
>
> I doubt it, just like you can't really "catch" a 404, right?
>
> Look in your server's documentation, there should be somewhere you can at
> least assign a static HTML page to a 500 error.  And information about the
> 500 should be written to server logs somewhere.
>
>
===========================================================================
> To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff
> JSP-INTEREST".
> For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST
> DIGEST".
> Some relevant FAQs on JSP/Servlets can be found at:
>
>  http://archives.java.sun.com/jsp-interest.html
>  http://java.sun.com/products/jsp/faq.html
>  http://www.esperanto.org.nz/jsp/jspfaq.jsp
>  http://www.jguru.com/faq/index.jsp
>  http://www.jspinsider.com
>
>
===========================================================================
> To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff
JSP-INTEREST".
> For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST
DIGEST".
> Some relevant FAQs on JSP/Servlets can be found at:
>
>  http://archives.java.sun.com/jsp-interest.html
>  http://java.sun.com/products/jsp/faq.html
>  http://www.esperanto.org.nz/jsp/jspfaq.jsp
>  http://www.jguru.com/faq/index.jsp
>  http://www.jspinsider.com
>

===========================================================================
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST".
Some relevant FAQs on JSP/Servlets can be found at:

 http://archives.java.sun.com/jsp-interest.html
 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.jsp
 http://www.jguru.com/faq/index.jsp
 http://www.jspinsider.com

Reply via email to