struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Ivan Siviero" <ivan.sivi...@concept.it>
Subject exception redirect [OT] ?
Date Sun, 18 Feb 2001 13:16:14 GMT
Maybe this will be a little bit OT
i want to redirect all the exception occurred in all actions and custom tags
to a page which send me an email with exception details.
In my web.xml i set the following tags
<error-page>
    <exception-type>java.lang.Throwable</exception-type>
    <location>/errorPage.jsp</location>
</error-page>

the errorPage.jsp  contain the directive: <%page isErrorPage="true"%>

In an action a try to call a method on a null object which causes a
NullPointerException.
I get redirect to my errorPage.jsp but when i get the exception with
pageContext.getException(), it is null;
I also have tried to set <%page errorPage="/errorPage.jsp"%> in every jsp
page i have, but nothing seems to work.

Any clue ?
Ivan.



--
To unsubscribe, e-mail:   <mailto:struts-user-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:struts-user-help@jakarta.apache.org>


Mime
View raw message