dcsimg
500 internal server error trapping
1 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   Anonymous
Posted On:   Wednesday, August 22, 2001 02:22 AM

I need to trap all kinds 500 error on my jsp page, i have tried the <%@ page ErrorPage="myerror.jsp"> but it only works on selected errors, I need to trap all errors even the syntax errors.

Re: 500 internal server error trapping

Posted By:   Bozidar_Dangubic  
Posted On:   Wednesday, August 22, 2001 06:43 AM

you can setup your web application to have error pages associated with a type of exception/error that occurs when pages are executed. you can setup a generic error page for Throwable and then more specific error pages from more specific exceptions/erros that occur. here is a sample web deployment descriptor that outlines the strategy.




java.lang.Throwable
/error-pages/generic.htm


500
/error-pages/500.htm


404
/error-pages/notThere.htm

About | Sitemap | Contact