Deepak,

Add a file called 500.html which can display this "An unforseen error
occured ,please try again" message

Place this in /webapps/projdir/500.html

Add these lines in your web.xml file in appropriate position according
to DTD

<error-page>
   <error-code>
          500
   </error-code>
   <location>
      /500.html
   </location>
</error-page>

You should see Your message...!
Cheers
 Daniel Jayapaul.E

 Daniel Jayapaul.E(Java Team Leader)
Software Park, 6th Floor, 99/29, Moo 4,
Chaengwattana Road, Klong Gleua, Pakred,
Nonthaburi 1120,Thailand.
Email: [EMAIL PROTECTED]
http://www.mustang-technologies.com
Tel: +66 2 583- 6161-4 Fax: +662 583 6535
Mobile +66 9 810 1157

-----Original Message-----
From: A mailing list about Java Server Pages specification and reference
[mailto:[EMAIL PROTECTED]] On Behalf Of Deepak
Sent: Wednesday, December 11, 2002 1:18 PM
To: [EMAIL PROTECTED]
Subject: How to set an error page

Hi folks

I have a jsp page which is experiencing some "Error 500" s
Instead of the ugly messages how can I show the user a simple message
such as
"An unforseen error occured ,please try again"

Kindly send in your suggestions.

Thanx in advance
Deepak

========================================================================
===
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