Results 1 to 2 of 2

Thread: Struts + Webflow + Continuations help needed please

  1. #1

    Question Struts + Webflow + Continuations help needed please

    G'day everyone,

    I read a thread posted regarding using struts with webflow and implementing continuations. I have got a simple app working which uses struts and webflow which uses the same method as found in the birthdate webflow sample app. I have had a look at the sample app called "Sell Item" which demonstrates using continuations but it uses springMVC. I am restricted to using struts, but have no idea how to use the continuations in my app. Did anyone ever get continuations working in this situation? If so, any chance you could post some code snippets on how to hook in continuations into a struts / webflow app like the birthdate sample app please? Or even point me in the right direction. Thanks in advance.

    Cheers,

    Eddy

    this is the sample code from the Sell Item app:
    Code:
    <bean name="/pos.htm"
           class="org.springframework.webflow.mvc.FlowController">
    	<property name="cacheSeconds" value="5"/>
    	<property name="flowExecutionManager"
                        ref="flowExecutionManager"/>
    </bean>
    
    <bean id="flowExecutionManager"
    class="org.springframework.webflow.execution.servlet.ServletFlowExecutionManager">
          <property name="listener">
    	<bean
    class="org.springframework.webflow.samples.sellitem.SellItemFlowExecutionListener"/>
          </property>
          <property name="storage">
    <bean class="org.springframework.webflow.execution.servlet.HttpSessionContinuationFlowExecutionStorage"/>
    		</property>
    		<!-- 
    		<property name="storage">
    			<bean class="org.springframework.webflow.execution.servlet.HttpSessionFlowExecutionStorage"/>
    		</property>
    		-->
    		<!-- 
    		<property name="storage">
    			<bean class="org.springframework.webflow.execution.ClientContinuationFlowExecutionStorage">
    				<property name="compress" value="true"/>
    			</bean>
    		</property>
    		-->
    	</bean>
    and here is what i have in my struts config file

    Code:
    <form-beans>
    <form-bean name="actionForm"
    			type="org.springframework.web.struts.SpringBindingActionForm" />
    
    </form-beans>
    
    <action-mappings>
    		<action path="/UpdateBlahBlah"
    			type="org.springframework.webflow.struts.FlowAction"
    			name="actionForm" scope="request" />
    </action-mappings>
    and this is what i have in my context file:
    Code:
    <bean id="blah"
    		class="org.springframework.webflow.config.XmlFlowFactoryBean">
    		<property name="location" value="/WEB-INF/webflow/blah-flow.xml" />
    	</bean>
    p.s. my struts webflow app works, just need to know how to use the continuations with it. thanks..

  2. #2
    Join Date
    Aug 2004
    Location
    Melbourne, FL
    Posts
    2,794

    Default

    Define a "flowExecutionManager" bean in your context fragment where your flow is deployed -- using the bean definition from sellitem (without the listener stuff of course) should work.

    Keith
    Keith Donald
    Core Spring Development Team

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •