tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Amrhein, Thomas" <tamrh...@debis.com>
Subject AW: Custom Error Document
Date Tue, 31 Oct 2000 11:25:34 GMT
Hi,

I want to do the same.

Belong the Servlet-Spec 2.2 we have to edit web.xml like this:

...
<web-app>
    ...
    <error-page>
        <error-code>404</error-code>
        <location>/404.html</location>
    </error-page>
</web-app>

But my tomcat hangs in an endless loop. He does not find 404.html. In my
system it's 
located in path_to_web_app/404.html 
Do you know where it has to be located?
How does your system behave? I use Tomcat 3.2beta5 under NT.

regards

Thomas


-----Urspr√ľngliche Nachricht-----
Von: Fredrik Stenberg [mailto:Fredrik.Stenberg@ei.sigma.se]
Gesendet am: Dienstag, 31. Oktober 2000 11:04
An: 'tomcat-user@jakarta.apache.org'
Betreff: Custom Error Document

Is it possible to redirect to a custom error page when recieving an Error
500 from Tomcat?

Eg. something equal to Apache's ErrorDocument directive.

/Fred

Mime
View raw message