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:
and here is what i have in my struts config fileCode:<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 this is what i have in my context 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>
p.s. my struts webflow app works, just need to know how to use the continuations with it. thanks..Code:<bean id="blah" class="org.springframework.webflow.config.XmlFlowFactoryBean"> <property name="location" value="/WEB-INF/webflow/blah-flow.xml" /> </bean>


Reply With Quote