Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Java > trapping error 500

Reply
Thread Tools

trapping error 500

 
 
faisal.aziz@gmail.com
Guest
Posts: n/a
 
      12-27-2004
I am using apache tomcat 5.x as my container. i m getting error code
500 and i want to trap that error so that show my error page instead of
tomcats error page.

I m using this at the moment

<error-page>
<exception-type>java.lang.Exception</exception-type>
<location>/test.jsp</location>
</error-page>

in my web.xml.

Any help will be appreciated.

 
Reply With Quote
 
 
 
 
Andy Flowers
Guest
Posts: n/a
 
      12-27-2004
http://www.velocityreviews.com/forums/(E-Mail Removed) wrote:
> I am using apache tomcat 5.x as my container. i m getting error code
> 500 and i want to trap that error so that show my error page instead
> of tomcats error page.
>
> I m using this at the moment
>
> <error-page>
> <exception-type>java.lang.Exception</exception-type>
> <location>/test.jsp</location>
> </error-page>
>
> in my web.xml.
>
> Any help will be appreciated.


Try catching the error code as per

<error-page>
<error-code>500</error-code>
<location>.....your page goes here.....</location>
</error-page>


 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Error Trapping and Error Line Number =?Utf-8?B?UGF1bA==?= ASP .Net 3 10-27-2005 11:49 AM
PIX log reporting 169.254.126.114/500 dst outside:192.168.100.2/500 hoser Cisco 2 04-15-2005 05:22 PM
Error 500: ERROR: Cannot forward. Writer or Stream already obtained. Error JavaQueries Java 1 03-01-2005 06:30 PM
trapping error 500 faisal.aziz@gmail.com Java 0 12-27-2004 06:39 AM
stack overflow just because of a double array[500][500]? James C++ 2 11-03-2004 09:05 AM



Advertisments