I too have this problem.  It works on my workstation environment (Websphere
Studio) but it doesn't work after I've deployed it to the server (WebSphere
4.01.021 on OS/390).  Are there any other ways to declare the error page
other than in the web.xml?

Thanks,
Eric

-----Original Message-----
From: Deepak [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, December 11, 2002 3:42 PM
To: [EMAIL PROTECTED]
Subject: Re: How to set an error page


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


**************************************************************************************************
The contents of this email and any attachments are confidential.
It is intended for the named recipient(s) only.
If you have received this email in error please notify the system manager or  the
sender immediately and do not disclose the contents to any one or make copies.

** eSafe scanned this email for viruses, vandals and malicious content **
**************************************************************************************************

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