Why <error-page> in web.xml does not work ?
843836Oct 15 2004 — edited Oct 20 2004Hello,
I am trying to catch errors (error 404, 500...), but it does not work and I do not know why....
I have tried to configure the web.xml file as follows :
web.xml :
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE web-app PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN" "http://java.sun.com/dtd/web-app_2_3.dtd">
<web-app>
.....
<error-page>
<exception-type>404</exception-type>
<location>/error/404error.html</location>
</error-page>
<error-page>
<exception-type>500</exception-type>
<location>/error/500error.html</location>
</error-page>
.......
</web-app>
Do you have any idea ?
Thanks :o)