1,iterator
<s:iterator id="obj" value="list" status="index">
<!---輸出當前元素的屬性-->
<s:property value="property"/>
<!---輸出當前迭代元素的索引-->
<s:property value="#index.index"/>
<!---輸出當前迭代了幾個元素-->
<s:property value="#index.count"/>
<!---返回當前迭代元素的索引是否為奇數(shù)-->
<s:property value="#index.odd"/>
<!---返回當前迭代元素的索引是否為偶數(shù)-->
<s:property value="#index.event"/>
<!---返回當前元素是否為第一個-->
<s:property value="#index.first"/>
<!---返回當前元素是否為最后一個-->
<s:property value="#index.last"/>
<!---返回當前元素下標-->
<s:property value="#index.getCount()" />
</s:iterator>