Announcement Announcement Module
Collapse
No announcement yet.
RequestDispatcher.forward in <action-state> <evaluate> Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • RequestDispatcher.forward in <action-state> <evaluate>

    Hi All,

    This is what I'm doing:

    Code:
    <action-state id="MyActionID">
    	<evaluate expression="myActionClass.doSomeAction(flowRequestContext)"/>
    </action-state>
    The doSomeAction will eventually call:

    Code:
    AuthenticationEngine.returnToAuthenticationEngine(request, response);
    
    // AuthenticationEngine.returnToAuthenticationEngine basically calls the following after some validation (this is from Shibboleth library):
    
    RequestDispatcher dispatcher = httpRequest.getRequestDispatcher(forwardPath);
    dispatcher.forward(httpRequest, httpResponse);
    The forwardPath is a URL that will be outside of the web flows...

    This causes:

    org.springframework.webflow.engine.NoMatchingTrans itionException: No transition was matched on the event...
    which makes sense.

    My question is what is the approriate way for me to forward the request by using AuthenticationEngine.returnToAuthenticationEngine?
    Is there a way to utilizer <end-state> since this is the end of my flow?
Working...
X