You *could* always do the unexpected and leverage web.xml's capability of setting up exception handlers across the webapp, which can even be done for HTTP errors. That might be really hard to work out though.
>From: John Ghidiu <[EMAIL PROTECTED]> >Reply-To: A mailing list about Java Server Pages specification and >reference <[EMAIL PROTECTED]> >To: [EMAIL PROTECTED] >Subject: Re: Application-wide error page. >Date: Wed, 14 Aug 2002 10:42:33 -0400 > >I considered that, but again, that seems rather restrictive - if I want to >change the error page in the future, I would have to change every JSP, >right? And that does not solve the HTTP errors (404, for example). > >Regards, >John > >John Ghidiu >Benderson Development Company Inc. >[EMAIL PROTECTED] >(716) 878-9376 > > >-----Original Message----- >From: Anoop Kumar V [mailto:[EMAIL PROTECTED]] >Sent: Wednesday, August 14, 2002 10:38 >To: [EMAIL PROTECTED] >Subject: Re: [JSP-INTEREST] Application-wide error page. > > >u can use an error-page directive. >In tomcat examples, there is a particular example which shows this. > > <%@ page errorPage="errorpge.jsp" %> >You will hv to include this in every jsp u wish to redirect to an error >page >like this. > >-anoop > >-----Original Message----- >From: John Ghidiu [mailto:[EMAIL PROTECTED]] >Sent: Wednesday, August 14, 2002 7:44 PM >To: [EMAIL PROTECTED] >Subject: Application-wide error page. > > >Hi All, > >I am writing my first web application, and I need some help. I have spent >most of the morning looking for the answer to what should be a simple >problem. I would like to have an error page that is global, in terms of the >application. That is, whenever any type of error occurs, I would like some >specific error page to be displayed. I have put ><error-page>java.lang.Throwable</error-page> in the web.xml, but that does >not work for http errors, such as 404. I realize that I could enumerate all >the error codes within <error-page> sections, but that seems tedious and it >just seems that there should be a better way. I am currently using Tomcat >4.1.8, and I would like to keep the solution vendor independent. Any ideas? > >Regards, >John > >John Ghidiu >Benderson Development Company Inc. >[EMAIL PROTECTED] >(716) 878-9376 > >==========================================================================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 ----------------------------------------------- Joseph B. Ottinger [EMAIL PROTECTED] http://enigmastation.com IT Consultant _________________________________________________________________ Join the world�s largest e-mail service with MSN Hotmail. http://www.hotmail.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
