<tr>
<td class="left_nm">广告形式:</td>
<td id="categoryList">
<c:forEach var="item" items="${typeList}" varStatus="num">
<c:choose>
<c:when test="${item.isChecked ==0 }">
<input type="checkbox" name="models" value="${item.id}" id="TypeList[${num.index }].id" style="" checked="checked" disabled="disabled"/>${item.name}
</c:when>
<c:otherwise>
<input type="checkbox" name="models" value="${item.id}" id="TypeList[${num.index }].id" style="" disabled="disabled"/>${item.name}
</c:otherwise>
</c:choose>
</c:forEach>
</td>
</tr>
jsp的EL表达式根据ischecked选择checkBox
原文地址:http://gggcgba.blog.51cto.com/3889163/1621535