Announcement Announcement Module
Collapse
No announcement yet.
Not getting the rootCauseException in flashScope. Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • Not getting the rootCauseException in flashScope.

    Hello,

    I am using JSF + SWF.

    I have on-exception transition as below
    ....
    <action-state>
    <transition on-exception="MyException" to="showError"/> </action-state>
    <view-state id="showError" view="/jsp/Error.jsp">
    ....

    The occurance of "MyException" in the action state transitions the application to the "showError" view state. However I don't see the exception displayed on the page. The blank string is printed.

    The Error.jsp code looks as below

    <%@ page contentType="text/html" %>
    <%@ page isErrorPage="true" %>
    <f:view>
    <h:form>
    <h:outputText value="#{flashScope.rootCauseException}"/>
    </h:form>
    </f:view>

    From the debug log created by SWF I see that the exception is added to the Flash scope. What could be the reason that I am not able to see the exception on the page?

    Would highly appreciate your response.

    Thanks,
    Shashi

  • #2
    Hi,

    you have to remove flashscope in your expression.

    Have a look at this post from Erwin

    http://forum.springframework.org/sho...54&postcount=6

    Regards
    agim

    Comment


    • #3
      Thanks agim.
      It worked.

      Regards,
      Shashi

      Comment

      Working...
      X