On 6/5/07, Roger Roger <[EMAIL PROTECTED]> wrote:
Hi there,

Recently we upgraded to Tomcat 6.0. Suddenly the custom errorpages don't
work anymore.

It works, when I try the example you've shown in your first post.

A few things you may want to check:

1) errorPage="error.jsp"   , is error.jsp relative to test.jsp ?

Since the above is a ~page relative~ path, both test.jsp and error.jsp
should be in the same folder , otherwis error.jsp will not be found.

A better approach would be to make errorPage a ~context~ relative path
, something like errorPage="/errors/error.jsp"  , this way error.jsp
will be visible to any page in your app when you use that path.

2) Is the web.xml configured correctly, is the path of error.jsp in
web.xml correct? Again, it should be context relative.



-Rashmi

---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to