Hello:
I declared an application error page in my web.xml:
error-page
exception-typejava.lang.Throwable/exception-type
location/error.action/location
/error-page
I have this declaration in my struts.xml:
action name=error class=page.Error
result name=success
If your just going for exception information you can direct to a JSP page
and use the Struts tags and look directly at the attributes defined o the
Exception implementation.
struts:property value=exception.message/
struts:property value=exception.cause.class/
etc..
Matt Filion
[EMAIL
I am trying to get the exception in action class also. I have previous
defined an error page that displays the error and have user type in more
information and click a button to email to support. That works fine.
But we also need to log exceptions. So I tried to change the handler
from a jsp
3 matches
Mail list logo