I would like to exchange data between two actions, say A and B. Currently I just store the String in the session, but is there probably a nicer way?
When A returns SUCCESS the client is redirected to the action B (see struts.xml below). Now I would like A to pass a String to B. I don't like storing it in the session since it's just a big Map and no one knows where the data comes from, who modifies it and who removes it. Thanks and best regards, Anton struts.xml: <struts> <package name="AnyUniqueName" extends="struts-default"> <action name="A" class="ClassA"> <result type="redirect-action">B</result> </action> <action name="B" class="ClassB"> <result>/result.jsp</result> </action> </package> </struts>
signature.asc
Description: OpenPGP digital signature