案例-在jsp頁面 實現ArrayList結果集循環成兩行兩列
<s:iterator value="#request.hkList" id="hkh" status="hkhindex"><s:if test="#hkhindex.index%7==0">
<tr>
</s:if>
<td><a href="javascript:addHotel(<s:property value="u.id"/>,<s:property value="#hkh.id"/>)" class="atag"><s:property value="#hkh.name"/></a></td>
<s:if test="#hkhindex.index%7==0">
</td>
</s:if>
</s:iterator>
posted on 2012-03-17 10:29 計明敏 閱讀(503) 評論(0) 編輯 收藏 所屬分類: jsp/servlet