You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tomcat.apache.org by bu...@apache.org on 2004/10/20 09:27:15 UTC
DO NOT REPLY [Bug 31794] New: -
Custom HTTP 400 error page
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=31794>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND
INSERTED IN THE BUG DATABASE.
http://issues.apache.org/bugzilla/show_bug.cgi?id=31794
Custom HTTP 400 error page
Summary: Custom HTTP 400 error page
Product: Tomcat 5
Version: 5.0.25
Platform: PC
OS/Version: Other
Status: NEW
Severity: Normal
Priority: Other
Component: Unknown
AssignedTo: tomcat-dev@jakarta.apache.org
ReportedBy: pari.gandhi@essential.com.au
Hi
I have a custom HTTP 400 page and I have configured web.xml as follows:
<error-page>
<error-code>400</error-code>
<location>/400.jsp</location>
</error-page>
<error-page>
<exception-type>java.lang.Throwable</exception-type>
<location>/error.jsp</location>
</error-page>
<error-page>
<exception-type>java.io.FileNotFoundException</exception-type>
<location>/404.jsp</location>
</error-page>
<error-page>
<error-code>403</error-code>
<location>/403.jsp</location>
</error-page>
<error-page>
<error-code>404</error-code>
<location>/404.jsp</location>
</error-page>
Now, when I pass in a bad request to my webapp [Example: http://pg1:88/epass/members/login/_ps_login_p1/normal/_pm_login_p1/view/_st_login_p1/normal/_pid/login_p1/%%%%%%/view.]I expected to see my custom 400 error page.
But, Tomcat returns the standard HTTP 400 error page. I searched bugzilla but I couldn't find anything related to tihs. Is this a known bug?
---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-dev-help@jakarta.apache.org