You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by "Turner, John" <JT...@AAS.com> on 2002/07/22 22:44:08 UTC

RE: Is it possible to specify a global 404 error page for all app s un der tomcat 4

Make sure you follow the DTD.  The containers in web.xml (like "error-page")
have to go in a very specific order.

John Turner
jturner@NOSPAM.aas.com


-----Original Message-----
From: John Regan [mailto:Jregan@csatravelprotection.com]
Sent: Monday, July 22, 2002 4:43 PM
To: Tomcat User Group (E-mail)
Subject: Is it possible to specify a global 404 error page for all apps
un der tomcat 4


Good afternoon,
I am trying to specify a generic 404 error page for all webapps in tomcat 4.
I added the following entry to tomcathome\conf\web.xml:
<error-page>
    <error-code>404</error-code>
    <location>/csa/jsp/Error404.jsp</location>
   </error-page>
under the default welcome files list and it doesn't work(just the generic
tomcat page not found page comes up).  csa is a directory under webapps.  Is
there a way to make this work??

Thanks in advance for any help,
JBR
"breakdancing will never go out of style."
Larry Crantz '87

--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>