日期:2014-05-18 浏览次数:20674 次
<s:bean name="org.apache.struts2.example.IteratorExample" var="it">
<s:param name="day" value="'foo'"/>
<s:param name="day" value="'bar'"/>
</s:bean>
<p/>
<table border="0" cellspacing="0" cellpadding="1">
<tr>
<th>Days of the week</th>
</tr>
<p/>
<s:iterator value="#it.days" status="rowstatus">
<tr>
<s:if test="#rowstatus.odd == true">
<td style="background: grey"><s:property/></td>
</s:if>
<s:else>
<td><s:property/></td>
</s:else>
</tr>
</s:iterator>
</table>
<s:iterator value="listIndent" id="lit">
<tr>
<td align="center"><s:property value="#lit.indentno"/></td>
<td align="center"><s:property value="#lit.indenttime"/></td>
<td align="center"><s:property value="#lit.arrivaltime"/></td>
<td align="center"><s:property value="#lit.suppliername"/></td>
<td align="center"><s:property value="#lit.merchandisename"/></td>
<td align="center"><s:property value="#lit.specification"/></td>
<td align="center"><s:property value="#lit.quantity"/></td>
<td align="center">检毕:已验收</td>
</tr>
</s:iterator>