Thank you. there was no var attribute in iterator tag, but I could use id attribute instead. Also had to make change to name to get is set on action.
I could get it work with either of the following. <s:iterator value=*"inputStrings"* status=*"sts"* *id*="s"> <s:textfield name="inputStrings[%{#sts.index}]" value="%{#s}"></ s:textfield> or <s:iterator value="inputStrings" status="sts" > <s:textfield name="inputStrings[%{#sts.index}]" value="%{top}"></ s:textfield> Regards, JK On Mon, Oct 24, 2011 at 1:01 AM, Steven Yang <kenshin...@gmail.com> wrote: > try > <s:iterator value=*"inputStrings"* status=*"sts"* var="s"> > <s:textfield name=*"inputStrings[%{#sts.index}].value"* value="%{#s}"></ > s:textfield> > > or > > <s:iterator value=*"inputStrings"* status=*"sts"*> > <s:textfield name=*"inputStrings[%{#sts.index}].value"* value="%{top}"></ > s:textfield> > > On Mon, Oct 24, 2011 at 2:21 PM, roger <roger.var...@googlemail.com> > wrote: > > > <s:textfield="inputStrings[%{#sts.index}].value" > > value="%{inputStrings[#sts.index].value}" > > > > -- > > View this message in context: > > > http://struts.1045723.n5.nabble.com/Edit-a-list-of-Strings-to-action-tp4931270p4931445.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 > > > > >