You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by Susan Bradeen <Su...@softlanding.com> on 2003/05/16 17:50:24 UTC
ActionForward
If I subclass ActionForward and add a new property, then use this as a
local <forward> in my action mapping, can I get to this property in the
action I forwarded to?
<action
path="..."
type="..."
name="..."
scope="request"
validate="...">
<forward name="forwardWithColor"
path="/myNextAction"
className="com.whatever.MyForward" >
<set-property property="myFavoriteColor" value="green" />
</forward>
</action>
where class MyForward contains the field myFavoriteColor, with
getter/setter methods.
How do I get access to myFavoriteColor from within myNextAction.do?
Thanks for any help.
Susan Bradeen
---------------------------------------------------------------------
To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: struts-user-help@jakarta.apache.org