Dear Daniel
I regret to say it didnt work.
I am still getting the ugly error 500 message on the browser.
Here is my web.xml
<web-app>
<welcome-file-list>
<welcome-file>login.jsp</welcome-file>
</welcome-file-list>
<error-page>
<error-code>500</error-code>
<location>/500.html</location>
</error-page>
</web-app>
can you spot any mistakes?
Please help
regards
Deepak
On Wednesday 11 December 2002 12:31 pm, you wrote:
> 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
===========================================================================
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