By the way how do I map many input text fields with the same name on
the action side:

In this case, how do I match, this field on the action side:

<s:generator val="%{getTamanhoGrupo()}" separator=""
count="%{getTamanhoGrupo()}">
       <s:iterator value="%{top}">
                   <s:textfield name="terminal" size="2" value="11">
                   </s:textfield>
       </s:iterator>
</s:generator>

Thanks again!!

On 10/29/07, Dave Newton <[EMAIL PROTECTED]> wrote:
> --- Marcos Mendonça <[EMAIL PROTECTED]> wrote:
> > Say I want to generate input fields and name them
> > according to the iterator value. How would I do
> that?
> >
> > <s:generator val="%{getTamanhoGrupo()}" separator=""
> > count="%{getTamanhoGrupo()}">
> >         <s:iterator value="%{top}">
> >                   <s:textfield name="dynaField.area" size="2"
> > value="11">
> >                   </s:textfield>
> >         </s:iterator>
> > </s:generator>
>
> You'd probably just want to use the "status" attribute
> of the <s:iterator...> tag and use it to build the
> name of the text field, although you might want to
> consider using array/map notation to clean things up
> on the action side.
>
> d.
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to