Hi,
ive got a problem currently with the error-page directive doing nothing
when I use it in an app (on either tomcat 4.1.18 or .27). At the bottom
of my app's web.xml, I have the following tag:
<error-page>
<error-code>500</error-code>
<location>/errorPages/500x.jsp</location>
</error-page>
This corresponds to a working page, however this tag is completely
ignored. As a result, in order to get any 500 errors to be handled
properly, I have to put an @page errorPage directive in the top of every
JSP - this doesnt of course work for servlets, so presents a problem then.
Has anyone any idea why it wouldnt work? I have had this problem thinking
about it before which meant that any Struts actions would not get handled
by the error handler. I ended up having to write a filter which caught
them for me and forwarded the request to the error page with the exception
held as a request attribute - this is obviously far from ideal!!
thanks
Pete
Kiss Technologies
http://www.kisstechnologies.co.uk/
4, Percy Street
London
W1T 1DF
Phone numbers:
Phone 020 7692 9922
Fax 020 7692 9923