jimingminlovefly

统计

最新评论

案例-在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 计明敏 阅读(485) 评论(0)  编辑  收藏 所属分类: jsp/servlet


只有注册用户登录后才能发表评论。


网站导航: