I would actually LOVE to have errors directed to a servlet like
interface to reply to the client. In my case we are going to be
routing requests from a lot of mobile devices using a compressed form
for traffic.
PK
At 14:05 3/7/2007, you wrote:
This seems basic, but apparently not. A similar question has been
asked recently, and there are a few posts on the web, but the answers
aren't enough to solve my problem.
I am trying to override the global default error page by using
directives such as
<error-page>
<location>/catch_all_errors.html</location>
</error-page>
or even
<error-page>
<error-code>404</error-code>
<location>/catch_all_errors.html</location>
</error-page>
If I include this in the bottom of my webapps web.xml file, it will
catch 404 errors for requests under my web-app:
http://myhost.com/myWebapp/thisPageDoesNotExist.html
but when I modify the global deployment descripter conf/web.xml, I
cannot catch top-level errors like this one:
http://myhost.com/thisPageDoesNotExist.html
More specifically, as a previous poster pointed out:
http://marc.theaimsgroup.com/?l=tomcat-user&m=116059712510694&w=2
it will catch the errors and display a blank page, but it won't
display my customized page.
A related problem is that even when I display customized errors under
my webapp, the error-page text displays, but loaded graphics sometimes
do not (it seems to depend on the URL).
At least part of my problem is that I am not sure where to locate the
error page if I create one. That is, what the root directory is for
the statements:
<location>/catch_all_errors.html</location>
or
<location>catch_all_errors.html</location>
Thanks.
--
View this message in context:
http://www.nabble.com/Location-to-override-global-%3Cerror-page%3E-tf3364166.html#a9359765
Sent from the Tomcat - User mailing list archive at Nabble.com.
---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]