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

Reply via email to