| By Date: | <-- --> |
| By Thread: | <-- --> |
Glen Mazza wrote:
And another is to define the error page in your web.xml:
<error-page> <error-code>500</error-code> <location>/myPage.jsp</location> </error-page>
I would save these for generic HTTP error codes, or generic Java exceptions (NullPointerErrors, ClassCastExceptions, perhaps), things are more likely the result of errors in coding than in user entry, and something the user cannot really recover from.
Also, the JSTL <c:catch var="..."/> action may be something to look at here, to keep runtime/coding errors handled within the JSP pages, without needing to forward to a generic error page.
Thanks -
Mott
--------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscribe (at) tomcat.apache.org For additional commands, e-mail: users-help (at) tomcat.apache.org