On Jan 12, 2009, at 5:38 PM, Len Popp wrote:



It sounds like error404.html isn't a plain HTML file, but a page
that's generated by a servlet. Is that right?

Yes.

If so, the servlet

should not set the status to 200 for an error page - it should leave
the error status alone.

I can see that.

Maybe you need a different version of the
servlet to handle error pages,

That's waht I have been slowly getting to: Make an error handling servlet.

or maybe your error pages should just
be static HTML files.

Well, they certainly could be. But how do I serve them without a servlet to do it?

That was ultimately my question:

How do I set the value of the location element in the error page declaration:

    <error-page>
        <error-code>404</error-code>
        <location>/docs/error404.html</location>
    </error-page>

So that tomcat will grab a static HTML page from disk?

Let's say that the error document is here:


$CATALINA_HOME/webapps/myContext/docs/error404.html

Because it doesn't do it if I disable the servlet (and it's mappings) that hands our the docs, it just returns an empty document.

Nathan




--
Len

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org


= = =
Nathan Potter                        ndp at opendap.org
OPeNDAP, Inc.                        541.752.1852



---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org

Reply via email to