我的第二个迭代器有语法问题。我想迭代的值equipesParties
但是,我似乎找不到正确的语法。
这是导致问题的标签:value="{equipesParties[#cpt.count()]}"
<s:iterator value="equipes" var="equipe" id="equipe" status="cpt">
<div style="height: 30px; vertical-align: middle;">
<input type="checkbox" class="rEquipe" name="equipe" value="<s:property value='#equipe.id' />" id="equipe_<s:property value='#equipe.id' />" <s:if test='gallery.equipe.id == #equipe.id'>checked="checked"</s:if> />
<label style="float: none; display: inline; padding-top: 0;" for="equipe_<s:property value='#equipe.id' />"><s:property value='#equipe.name' /></label>
</div>
<div id="galerie_partieBox" <s:if test='gallery == null || gallery.partie == null'>style="display: none;"</s:if> >
<select style="float: none; margin: 0 0 0 30px;" name="partie" id="select_partie">
<s:if test='parties != null'>
<s:iterator value="{equipesParties[#cpt.count()]}" var="partie">
<option <s:if test='#partie.id == gallery.partie.id'>selected="selected"</s:if> value="<s:property value='#partie.id' />"><s:property value="#partie.gameName" /></option>
</s:iterator>
</s:if>
</select>
</div>
</s:iterator>