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 <mitn...@email.it> wrote:

> Hi all,
>
> I need pass dinamic name at textfield tag.
>
> For example:
> &lt;s:textfield
> name=&quot;&lt;%=request.getParameter(&quot;type&quot;)%&gt;.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: user-unsubscr...@struts.apache.org
> For additional commands, e-mail: user-h...@struts.apache.org
>
>

Reply via email to