You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Mike McGuinness <mm...@lssi.net> on 2002/07/23 20:19:18 UTC

Re: Is it possible to specify a global 404 error page for all apps un der tomcat 4

Change your location to a directory under the webapp name.

E.g., A web app named myapp is under webapp  ...webapps/myapp

In this example the file to serve should be relative to the myapp dir
not the webapps dir.


On Mon, 2002-07-22 at 16:42, John Regan wrote:

    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