【发布时间】:2011-10-28 23:14:46
【问题描述】:
我在 jsp 中有一个表,我将值添加到它,如下所示
<c:forEach items="${features}" var="feature">
<c:choose>
<c:when test="${feature.present == true}">
<c:set var="featurePresent" value="REMOVE"/>
</c:when>
<c:otherwise>
<c:set var="featurePresent" value="ADD"/>
</c:otherwise>
</c:choose>
<tr>
<td>${feature.name}</td>
<td>${featurePresent}</td>
<td><form:checkbox path="" value=""/></td>
</tr>
</c:forEach>
我正在尝试添加复选框..
我的要素类是
class Feature{
private String name;
private boolen present;
private boolean checkbox
}
如何在jsp页面中设置复选框
【问题讨论】:
标签: forms jsp spring-mvc jstl