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/19 14:54:44 UTC

ActionForward

If I have an ActionForward defined like so:

<forward name="changeWithParam" 
    path="/changeItem.do" 
    className="com.my.company.ChangeForward" >
    <set-property property="someParam" value="someValue" />
</forward>

Then I use this forward in a <html:link> from a JSP, is the "someParam" 
property defined in the forward automatically available in some context to 
the Action the forward is going to (/changeItem in this case)? I haven't 
found any mention of this in the docs, but it seems like this should be 
doable.

I know I can do something like:

ChangeForward forward = (ChangeForward) 
mapping.findForward("forwardWithParam");
String param = forward.getSomeParam();

But I'd like to know within the changeItem Action if it was called using 
*this* forward (someParam has a value), or if it was called using another 
forward (someParam is null). 

Thanks,
Susan Bradeen



---------------------------------------------------------------------
To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: struts-user-help@jakarta.apache.org