Sep 22nd, 2006, 07:25 AM
Passing parameters to and getting results from a flow called by Struts
I have a nice working flow now (thanks Keith), which I call from other flows as a sub-flow.
I am passing in parameters and getting them back, via input/output mappers in the flow definitions.
If I now want to call my sub-flow from struts, how do I pass parameters directly from struts to my flow ? Can I do this or will I have to front my sub-flow with another flow that gets the Struts action form and then calls my sub-flow, as stated in the javadoc:
"On each request received by this action, a StrutsEvent object is created as input to the web flow system. This external source event provides access to the action form, action mapping, and other struts-specific constructs. As a convenience, the "actionForm" attribute is also exposed in requestScope after a request is submitted. This means you may access your action form from your web flow artifacts as follows: context.getRequestScope().getAttribute("actionForm ")."