How can I use a JSP as an Apache ErrorDocument -- so Apache will display its errors using my JSP?

Alessandro A. Garbagnati

[ I want to use a JSP as ErrorDocument, so I put the line

ErrorDocument 404 /404.jsp
in my httpd.conf-file and created the jsp.

Maybe the directive should be written like this:

ErrorDocument 404 http://<the complete address>/404.jsp

This should execute a redirect-like, so should generate a new request to the system, so the apache process should restart and the 404.jsp should be reached.

It worked for me... (Apache 1.3.19, Tomcat 3.2.2, Resin 1.2.8)