jsp 动态怎么添加table 的 tr td 要求是3X3 jsp,table,j2ee,td,tr 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 把获取到List<User>拼凑成<tr><td>***</td><td>***</td></tr>的html字符串,再用jquery获取table的tbody,append上去就可以了! <tr> <s:iterator value="list"> <td> <s:property value="user.userName"> </td> </s:iterator> </tr> <s:iterator value="list" status="index"> <s:if test="#index %3 == 0"> <br> <s:iterator value="list" status="index"> <s:if test="#index %3 == 0"> <br>index == 3 我用的这个<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> 用 c标签的foreach ,js拼凑可能样式会乱 把你的需求高速迭代器,在迭代中间处理你的html表格标签就好了,想要多少都没问题、 <s:iterator value="list" status="index"> <s:if test="#index %3 == 0">支持 一个循环不就行了么··你用的什么页面 jsp 就是jstl标签啊 先写好table 然后循环td啊 求一mysql的统计sql 非常奇怪的问题,使用spring注入后,ext json失效! 急急急... 在一个方法里面动态切换数据源 留言板-如何将数据存到xml文件-急急急 关于weblogic连接池的详细配置问题 java_struts2 急,急,急!高分求助!!Java Mail API配置问题!!!不够再送!!!! 高分请教一个weblogic的问题 请问如何在weblogic 中配置数据源 使之和jb中的数据源相同! 在junit单元测试时,log4j无法记录异常信息 小小女菜鸟请大家帮忙,如何使这段代码变得整洁呢?
<tr>
<s:iterator value="list">
<td>
<s:property value="user.userName">
</td>
</s:iterator>
</tr>
<s:if test="#index %3 == 0">
<br>
<s:if test="#index %3 == 0">
<br>
index == 3
<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>
<s:if test="#index %3 == 0">
支持
你用的什么页面 jsp 就是jstl标签啊 先写好table 然后循环td啊