You are right in that the indexed property isn't in the indexed tag.
The discussion was more on the new nesting tags that get through all
this properly.
Go here for the downloads...
http://www.keyboardmonkey.com/download/struts/index.html
And for a running example...
http://www.keyboardmonkey.com/StrutMonkey
With any luck they'll be a part of struts soon.
You can get the basic iterators to go through more than one level, but
it takes some fiddling.
Arron.
Don Saxton wrote:
>Actually I don't think there is an option, because the indexed="true" in the
>current logic is not an attribute of iterate so that the following has an
>incomplete result. In other words the the current tag only can do one level.
>
> <!-- begin ScoreFactor -->
> <logic:iterate id="factor" name="category" property="scoreFactorTree">
> <tr class=authordata>
> <td> <bean:write name="factor" property="name" /></td>
> <!-- begin EffectParts -->
> <logic:iterate id="part" name="factor" property="effectList" >
> <td><html:text name="part" property="value"
>indexed="true"/></td> <!--ONE LEVEL ONLY -->
> </logic:iterate> <!-- end EffectParts -->
> </tr>
> </logic:iterate> <!-- end ScoreFactor -->
>
>
>Results in
> <!-- begin ScoreFactor -->
>
> <tr class=authordata>
> <td> Acquisition Cost Efficie</td>
> <!-- begin EffectParts -->
>
> <td><input type="text" name="part[0].value" value=""></td>
>
> <!-- end EffectParts -->
> </tr>
>
> <tr class=authordata>
> <td> Cost Per Mission</td>
> <!-- begin EffectParts -->
>
> <td><input type="text" name="part[0].value" value=""></td>
>
> <!-- end EffectParts -->
> </tr>
>
>
>
>
>--
>To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]>
>For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>
>
--
To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>