struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From J J <>
Subject exception handling
Date Sat, 17 Jan 2009 17:44:37 GMT
I am trying to implement declarative exception handling for all the possible exceptions. The
problem is that in this way I only catch some exceptions (not all of them) and I cant get
its stack trace nor its message(it is only rendered the rest of my JSP but not the information
about the stack or message about the excepion). I have this:

In my struts.xml
            <result name="handleException" type="redirect">error.jsp</result>
            <exception-mapping result="handleException" exception="java.lang.Exception"/>

And in my JSP
   <%@ taglib prefix="s" uri="/struts-tags" %>
        <s:property value="%{exception.message}"/>
        <s:property value="%{exceptionStack}"/>

Thanks in advanced

  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message