Just like you can do below I would like to be able to do equivalent for request or session attribute in a webflow.
i.e something like:
<action-state id="criteria.view">
<export scope="request"
bean="productTypeActions"
method="loadAll"/>
Code:You could use a MethodInvokingFactoryBean for this: <bean class="org.springframework.web.context.support.ServletContextAttributeExporter"> <property name="attributes"> <map> <entry key="myScAttr"> <bean class="org.springframework.beans.factory.config.MethodInvokingFactoryBean"> <property name="targetObject"><ref bean="objectDao/></property> <property name="targetMethod"><value>getProperty</value></property> </bean> </entry> </map> </property> </bean>


Reply With Quote