2014-06-03 4:09 GMT+02:00 Janardhana Pagadala <jrpagad...@gmail.com>:
> We would like to implement similar functionality in Struts 2.3.x to match
> with that of above:
> <action name="index1" class="com.test.struts2.action.MyAction">
>                        <tag1 key1="value1" key2="value2" key3="value3">
> <tag2 key1="value1" key2="value2" />
> <tag3 key1="value1" key2="value2"/>
> </tag1>
>   <result name="success">/sample.jsp</result>
>                   </action>
>
>
> *Question:*
> What is the best way to implement similar functionality in Struts 2.3.x
> (Struts.xml)?
> How do we tell the Struts framework to recognize the new "action" tags and
> pass the values to be set on the corresponding "action" class?

Use param

<param name="foo">bar</param>

or

<param name="foo">${bar}</param>

if you need set value dynamically


Regards
-- 
Ɓukasz
+ 48 606 323 122 http://www.lenart.org.pl/

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

Reply via email to