Hello,
I'm working with Struts2 and I'm having an issue with it's error handling mechanism. What I would like to do is to get the stackTrace and exception attributes in order to use it inside an action class (as for printing on the console) or inside a JSP page (without using taglibs).
Bellow there is a snippet of my struts.xml file:
<default-interceptor-ref name="defaultStack"/>
<global-results>
<result name="Exception" type="redirect">/error.action</result>
</global-results>
<global-exception-mappings>
<exception-mapping result="Exception" exception="java.lang.Exception" />
</global-exception-mappings>
<action name="error" class="fend.ErrorAction">
<result>/error.jsp</result>
<interceptor-ref name="configStack"/>
</action>
Thanks in advance!