While you can't nest tags like that, you can use OGNL to get the data you
want. It would look something like:
<s:textfield name="%{#parameters.type.myField}" maxlength="250" size="20" />
(*Chris*)
On Mon, Jun 20, 2011 at 6:58 AM, k3v1n <[email protected]> wrote:
> Hi all,
>
> I need pass dinamic name at textfield tag.
>
> For example:
> <s:textfield
> name="<%=request.getParameter("type")%>.myField"
> maxlength="250" size="20px;"/>
>
> Is it possible?
>
> My Action contains these objects:
> MyBean myBean1 = new MyBean();
> MyBean myBean2 = new MyBean();
>
> his name is generic, type can be myBean1 or myBean2
>
> MyBean class contains myField attribute
>
> Help please
>
> Thanks in advance
>
> --
> View this message in context:
> http://struts.1045723.n5.nabble.com/dinamic-name-for-textfield-tp4506481p4506481.html
> Sent from the Struts - User mailing list archive at Nabble.com.
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [email protected]
> For additional commands, e-mail: [email protected]
>
>