How to get exception in action class for error page?

2007-09-10 Thread Neil Aggarwal
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

Re: How to get exception in action class for error page?

2007-09-10 Thread Matt Filion
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

RE: How to get exception in action class for error page?

2007-09-10 Thread Jiang, Jane (NIH/NCI) [C]
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