Try using the second form in all three spots. I believe it should work. (*Chris*)
On Thu, Jun 27, 2013 at 1:38 PM, Eric Lentz <ericle...@outfastsource.com>wrote: > My questions are: Is there a better place to discuss this? Could this ever > be enhanced? > > The issue: > I'd love to see more consistency in the way we must access indexed values > when iterating. Consider the example below and note that there are 3 > distinct ways in which I must access the index value. I can't tell you how > many times this has caused errors (and wasted time). Any chance that this > could be revised in some later version of Struts so there is just 1 way to > access in every attribute of every Struts element? > > <s:iterator value="foos" status="stat" > > > <s:textfield name="foos[%{#stat.index}].aString" > value="%{foos[#stat.index].aString}" /> > > <s:property value="foos[#stat.index].aString" /> > > </s:iterator> > > Summary: > 1: foos[%{#stat.index}].aString > 2: %{foos[#stat.index].aString} > 3: foos[#stat.index].aString > > Anyone else grieved by this or am I doing something wrong? > > - Eric >