Hi, It works fine for me. You might be having other errors which are clouding this problem.
By the way, error pages like this are part of the Spec, and as such covered both by our internal tests and the Servlet/JSP TCKs which are run independently on every Tomcat release. Yoav Shapira http://www.yoavshapira.com >-----Original Message----- >From: Chris Cherrett [mailto:[EMAIL PROTECTED] >Sent: Sunday, December 12, 2004 8:23 AM >To: Tomcat Users List >Subject: error-page not working properly > >Hello > >I have searched this topic on google to find the following to be true: > >catching 500 or 404 error does not work in Tomcat 5 like this > ><error-page> > <exception-type>500</exception-type> > <location>/error.jsp</location> > </error-page> ><error-page> > <exception-type>404</exception-type> > <location>/error.jsp</location> > </error-page> > >Is this true? > >This works for 500 but not 404. > ><error-page> > <exception-type>java.lang.Throwable</exception-type> > <location>/error.jsp</location> > </error-page> > >Is there a way to catch all exceptions that works in Tomcat 5 > >Thanks >-- >Chris Cherrett >Tracking Solutions International >1-877-TSIWARE >www.tsiware.com > >--------------------------------------------------------------------- >To unsubscribe, e-mail: [EMAIL PROTECTED] >For additional commands, e-mail: [EMAIL PROTECTED] This e-mail, including any attachments, is a confidential business communication, and may contain information that is confidential, proprietary and/or privileged. This e-mail is intended only for the individual(s) to whom it is addressed, and may not be saved, copied, printed, disclosed or used by anyone else. If you are not the(an) intended recipient, please immediately delete this e-mail from your computer system and notify the sender. Thank you. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
