Hello Lukas

Thanks for your response but the issue is not with <param> tag. As
mentioned in my question, I would like use custom tag <tag1>, <tag2> etc.
in action in addition to the <param> tag. Hope the questions makes sense
now.

Please suggest if there is a possibility to implement such feature in
Struts 2.3.x

Thanks in advance


On Tue, Jun 3, 2014 at 2:19 AM, Lukasz Lenart <lukaszlen...@apache.org>
wrote:

> 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
>
>


-- 
Thanks,

Janardhana Pagadala
Cell: 617-653-3240
Email: jrpagad...@gmail.com

Reply via email to