用EL动态生成表格 用EL怎么样动态生成表格,并且表格的每一列都要有单击事件。 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 <table border="1"> <tr> <td>Name</td> <td>Age</td> <td>Group</td> </tr> <c:choose> <c:when test="${empty userlist}"> <tr> <td colspan="3">没有符合条件的数据</td> </tr> </c:when> <c:otherwise> <c:forEach items="${userlist}" var="user" varStatus="vs"> <c:choose> <c:when test="${vs.count % 2 == 0}"> <tr bgcolor="red"> </c:when> <c:otherwise> <tr> </c:otherwise> </c:choose> <td> <c:out value="${user.username}"/> </td> <td> <c:out value="${user.age}"/> </td> <td> <c:out value="${user.group.name}"/> </td> </tr> </c:forEach> </c:otherwise> </c:choose> </table> Java错误 tomcat启动问题 怎样给<tag-file>添加attribute属性,可以在网页中使用此标签提示属性 写入数据库的汉字出现乱码 JAVASCRIPT高手进~~~~~~~~~~~~ 高手们都到那里去吗,怎么我问的问题没人回答? 这个问题如何解决? String a=request.getParameter(???);的这个问题比较复杂...... asp 中session("logname")="username" jsp怎么写? 想入java web方向了,求点书籍 帮帮忙 简单的jsp购物系统
<tr>
<td>Name</td>
<td>Age</td>
<td>Group</td>
</tr>
<c:choose>
<c:when test="${empty userlist}">
<tr>
<td colspan="3">没有符合条件的数据</td>
</tr>
</c:when>
<c:otherwise>
<c:forEach items="${userlist}" var="user" varStatus="vs">
<c:choose>
<c:when test="${vs.count % 2 == 0}">
<tr bgcolor="red">
</c:when>
<c:otherwise>
<tr>
</c:otherwise>
</c:choose>
<td>
<c:out value="${user.username}"/>
</td>
<td>
<c:out value="${user.age}"/>
</td>
<td>
<c:out value="${user.group.name}"/>
</td>
</tr>
</c:forEach>
</c:otherwise>
</c:choose>
</table>