Shouldn't that be:

<s:textfield theme="simple" name="beanList[%{bean.id}].name"/>

Is that what you meant Dave?
  (*Chris*)

On Fri, Apr 29, 2011 at 9:07 AM, Dave Newton <davelnew...@gmail.com> wrote:

> Try with square brackets first; see what happens.
>
> Dave
>
> On Fri, Apr 29, 2011 at 12:04 PM, Joe <fullmit...@lycos.com> wrote:
> >
> >
> > On Apr 29, 2011, Dave Newton-6 wrote:
> >>What does the JSP look like?
> >>Dave
> >
> > Sorry, it is the same as the example with the exception of fixing a minor
> typo in the textfield tag (the example is missing a colon):
> >
> > <%@ taglib prefix="s" uri="/struts-tags"%>
> > <head>
> > </head>
> > <body>
> > <s:form method="post" theme="xhtml">
> > <p>Experimenting with indexed values (List Values)
> > <p>
> > <s:iterator value="beanList" id="bean">
> >  <s:textfield theme="simple" name="beanList(%{bean.id}).name" /><br>
> > </s:iterator>
> > <p>
> > <s:submit theme="simple" action="saveTest" key="button.label.save"
> cssClass="butStnd"/>
> > </s:form>
> > </body>
> > </html>
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
> > For additional commands, e-mail: user-h...@struts.apache.org
> >
> >
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
> For additional commands, e-mail: user-h...@struts.apache.org
>
>

Reply via email to