s:iterator

1、<%@ taglib prefix="s"  uri="/struts-tags" %>

   <s:iterator value="maps"  status="t">  maps来自于action中,getXxx获取
       <tr id="<s:property value='id'/>" bgcolor="<s:property value="%{#t.count%2==0?'#c9cdd2':'#e7eaee'}"/>">
          <td><s:property value="id"/></td>
          <td><s:property value="username"/></td>
          <td><s:property value="password"/></td>
       </tr>
    </s:iterator>

2、

posted @ 2012-11-01 19:00  墙头一颗草  Views(138)  Comments(0Edit  收藏  举报