struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Dave Newton <>
Subject Re: [struts2] s:generator not generating output
Date Mon, 29 Oct 2007 14:49:07 GMT
--- Marcos Mendonça <> wrote:
> Say I want to generate input fields and name them
> according to the iterator value. How would I do
> <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.


To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message