You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Laurent Michenaud <lm...@adeuza.fr> on 2003/11/20 16:25:58 UTC
bug ?
When my error page is at the root of the webapp, tomcat can't find it.
In web.xml of the webapp :
This works :
<error-page>
<error-code>404</error-code>
<location>/error/notfound.jsp</location>
</error-page>
This works
<error-page>
<error-code>404</error-code>
<location>/</location>
</error-page>
This DOESNOT works :
<error-page>
<error-code>404</error-code>
<location>/notfound.jsp</location>
</error-page>
Tomcat is 4.1.29
Re: bug ?
Posted by Andoni <an...@indigo.ie>.
.jsp files have never worked for me when they are at the root of a web-app.
I still see them being used this way in books all the time though to don't
take my word as gospel. Do you have any .jsp files running in this way?
Andoni.
----- Original Message -----
From: "Laurent Michenaud" <lm...@adeuza.fr>
To: <to...@jakarta.apache.org>
Sent: Thursday, November 20, 2003 3:25 PM
Subject: <error-page> bug ?
When my error page is at the root of the webapp, tomcat can't find it.
In web.xml of the webapp :
This works :
<error-page>
<error-code>404</error-code>
<location>/error/notfound.jsp</location>
</error-page>
This works
<error-page>
<error-code>404</error-code>
<location>/</location>
</error-page>
This DOESNOT works :
<error-page>
<error-code>404</error-code>
<location>/notfound.jsp</location>
</error-page>
Tomcat is 4.1.29
---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org