解决方案 »

  1.   

    把获取到List<User>拼凑成<tr><td>***</td><td>***</td></tr>的html字符串,再用jquery获取table的tbody,append上去就可以了!
      

  2.   


        <tr>
           <s:iterator value="list">
            <td>
                 <s:property value="user.userName">
            </td>
           </s:iterator>
        </tr>
      

  3.   

          <s:iterator value="list" status="index">
               <s:if test="#index %3 == 0">
                 <br>
      

  4.   

          <s:iterator value="list" status="index">
               <s:if test="#index %3 == 0">
                 <br>
    index == 3
      

  5.   

       我用的这个
    <s:iterator value="deskList"><c:choose>
         <c:when test="${stat}==1">
    <td height="110px" width="220px" "bgcolor="#EEEEEE">
        </c:when>
        <c:when test="${stat}==2">
    <td height="110px" width="220px" bgcolor="#CCCCCC">
        </c:when>
        <c:when test="${stat}==3">
    <td height="110px" width="220px" bgcolor="#EEEEEE">
        </c:when>
        <c:otherwise>
            <td height="110px" width="220px" bgcolor="#EEEEEE">
        </c:otherwise>
    </c:choose>   为什么 每次都走<c:otherwise>  
      

  6.   

    用 c标签的foreach ,js拼凑可能样式会乱
      

  7.   

    把你的需求高速迭代器,在迭代中间处理你的html表格标签就好了,想要多少都没问题、
      

  8.   

    <s:iterator value="list" status="index">
      <s:if test="#index %3 == 0">
    支持
      

  9.   

    一个循环不就行了么··
    你用的什么页面 jsp 就是jstl标签啊 先写好table 然后循环td啊