tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Arvind Srinivasan <Arvi.Sriniva...@Sun.COM>
Subject error-page mapping for 200?
Date Mon, 08 Jan 2007 14:27:40 GMT
Hi,

StandardContext.findErrorPage(int) 
(http://svn.apache.org/repos/asf/tomcat/tc6.0.x/trunk/java/org/apache/catalina/core/StandardContext.java)

has the following

     public ErrorPage findErrorPage(int errorCode) {
         if (errorCode == 200) {
             return (okErrorPage);
         } else {
             return ((ErrorPage) statusPages.get(new Integer(errorCode)));
         }

     }

Why would a web application configure an error-page for a response 
status code of 200?

I'd expected to see something like this
         if (errorCode > 200)
             return ((ErrorPage) statusPages.get(new Integer(errorCode)));
         else
             return null;


Thanks,
Arvind

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org


Mime
View raw message