Hi all,

I'm using the struts library for quite some time now and I'm very 
pleased with it.
What I want to do is display a HTML form in which users can update 
values that are stored in an array.
The values are displayed using the iterate tag. However to store the new 
value I need the index of the iterator
so the right value gets updated. I know there is a getIndex in the 
IterateTag.java (since version b2), but I
don't know how to access this variable in a jsp.

This example works, but always displays the value of the first attribute:

<logic:iterate id="Attribute" name="itemForm" property="attributes">
  <bean:write name="itemForm" property="attributes[0].value" />
</logic:iterate>

How can access the i-th attribute from the attributes array?

Mark

-- 
--o-o----------
Mark Kettner
http://www.fredhopper.com
Amsterdam, The Netherlands
Phone:  +31 20 3206203 Mobile: +31 620 609 817
fax:    +31 20 8848747
E-mail: [EMAIL PROTECTED], [EMAIL PROTECTED]

Reply via email to