John
check out %CATALINA_HOME%\webapps\examples\jsp\error
you can execute the sample with http://localhost:8080/examples/jsp/error/error.html
Good Luck,

Martin Gainty

______________________________________________

Disclaimer and confidentiality note

Everything in this e-mail and any attachments relating to the official business of Laconia Data Systems (LDS) is proprietary to the company. It is confidential, legally privileged and protected by law. LDS does not own and endorse any other content. Views and opinions are those of the sender unless clearly stated as being that of LDS.

The person addressed in the e-mail is the sole authorised recipient. Please notify the sender immediately if it has unintentionally reached you and do not read, disclose or use the content in any way.

LDS can not assure that the integrity of this communication has been maintained nor that it is free of errors, virus, interception or interference.

             _______________________________________________

 

>From: Anoop Kumar V <[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:37:56 -0400
>MIME-Version: 1.0
>Received: from [192.18.99.108] by hotmail.com (3.2) with ESMTP id MHotMailBF23B65A00794004321EC012636CE4690; Wed, 14 Aug 2002 07:38:51 -0700
>Received: from swjscmail1 (swjscmail1.Sun.COM [192.18.99.107])by swjscmail2.java.sun.com (Postfix) with ESMTPid BBB5323055; Wed, 14 Aug 2002 08:35:53 -0600 (MDT)
>Received: from JAVA.SUN.COM by JAVA.SUN.COM (LISTSERV-TCP/IP release 1.8d) with spool id 2429726 for [EMAIL PROTECTED]; Wed, 14 Aug 2002 08:34:09 -0600
>Received: from andromeda.sapient.com (207-121-0-68.sapient.com [207.121.0.68]) by swjscmail1.java.sun.com (Postfix) with ESMTP id CFBD54835 for <[EMAIL PROTECTED]>; Wed, 14 Aug 2002 08:34:08 -0600 (MDT)
>Received: by andromeda.sapient.com with Internet Mail Service (5.5.2653.19) id ; Wed, 14 Aug 2002 10:37:58 -0400
>From [EMAIL PROTECTED] Wed, 14 Aug 2002 07:39:54 -0700
>Delivered-To: [EMAIL PROTECTED]
>X-Mailer: Internet Mail Service (5.5.2653.19)
>Message-ID: <[EMAIL PROTECTED]>
>Sender: A mailing list about Java Server Pages specification and reference <[EMAIL PROTECTED]>
>
>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
>java.lang.Throwable 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 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


Chat with friends online, try MSN Messenger: Click Here
=========================================================================== 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