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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to