<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<tr>
<td width="15%" align="right" height="30">办理状态:</td>
<td width="71%" colspan="5">
<input type="checkbox" name="apply_status" id="apply_status_1" value="1" <c:forEach var="itvalue" items="${apply_status }"><c:if test="${itvalue eq 1 }" >checked="checked" </c:if></c:forEach>/>审核中
<input type="checkbox" name="apply_status" id="apply_status_11" value="11" <c:forEach var="itvalue" items="${apply_status }"><c:if test="${itvalue eq 11 }" >checked="checked" </c:if></c:forEach>/>审批中
<input type="checkbox" name="apply_status" id="apply_status_12" value="12" <c:forEach var="itvalue" items="${apply_status }"><c:if test="${itvalue eq 12 }" >checked="checked" </c:if></c:forEach>/>退回
<input type="checkbox" name="apply_status" id="apply_status_13" value="13" <c:forEach var="itvalue" items="${apply_status }"><c:if test="${itvalue eq 13 }" >checked="checked" </c:if></c:forEach>/>拟批准公示
<input type="checkbox" name="apply_status" id="apply_status_21" value="21" <c:forEach var="itvalue" items="${apply_status }"><c:if test="${itvalue eq 21 }" >checked="checked" </c:if></c:forEach>/>已办结
<input type="checkbox" name="apply_status" id="apply_status_22" value="22" <c:forEach var="itvalue" items="${apply_status }"><c:if test="${itvalue eq 22 }" >checked="checked" </c:if></c:forEach>/>已终止
<input type="checkbox" name="apply_status" id="apply_status_23" value="23" <c:forEach var="itvalue" items="${apply_status }"><c:if test="${itvalue eq 23 }" >checked="checked" </c:if></c:forEach>/>作废
</td>
</tr>
String[] applystatus = {};
if(request.getParameterValues("apply_status") != null && !"".equals(request.getParameterValues("apply_status"))){
applystatus = request.getParameterValues("apply_status");
}
request.setAttribute("apply_status", applystatus);
核心:
<input type="checkbox" name="apply_status" id="apply_status_11" value="11" <c:forEach var="itvalue" items="${apply_status }"><c:if test="${itvalue eq 11 }" >checked="checked" </c:if></c:forEach>/>审批中
分享到:
相关推荐
方法一:如何根据条件判断是否默认选中table表格前面的复选框 table.render({ elem: '#userTable' , url: '../sysRole/getUserList' , title: '用户列表' , page: true //开启分页 , cols: [[ {type:'...
今天小编就为大家分享一篇layui checkbox默认选中,获取选中值,清空所有选中项的例子,具有很好的参考价值,希望对大家有所帮助。一起跟随小编过来看看吧
js创建checkbox默认选中在某些特殊情况下还是比较实用的,下面有个不错的示例,大家可以参考下
下面小编就为大家带来一篇改变checkbox默认选中状态及取值的实现代码。小编觉得挺不错的,现在就分享给大家,也给大家做个参考。一起跟随小编过来看看吧
下面小编就为大家带来一篇CheckBox控件默认选中,提交时永远获得选中状态的实现代码。小编觉得挺不错的,现在就分享给大家,也给大家做个参考。一起跟随小编过来看看吧
主要给大家介绍了关于ng-repeat中Checkbox默认选中的相关资料,文中通过示例代码介绍的非常详细,对大家的学习或者工作具有一定的参考学习价值,需要的朋友们下面随着小编来一起学习学习吧
主要介绍了jstree的checkbox默认选中和隐藏,需要的朋友可以参考下
巧用struts标签之checkboxlist选中默认值换行处理
struts的htmlcheckbox标签的默认选中问题
在Struts中几种情况可以使标签初始就是选中的,Formbean里面该Property的值设为 1.on 、2.yes 、3.true 这三种情况都是可以实现默认选中的。 注:如果不选中,最好把Property的设置为””,因为在Action中得到...
本篇文章主要介绍了bootstrap 设置checkbox部分选中效果,主要涉及到js各个方面的内容,对于bootstrap设置checkbox选中效果感兴趣的朋友可以参考一下吧
strust的复选框自动怎么选中,具体的案例,具体的strust标签
需要把选中的checkbox置空,即将选中的checkbox不选中。最后,发现一个方法很好使,特此记录。 $("input[type='checkbox']").each(function(){ if(this.checked){ this.checked=false; } }); 原理:循环每一个type...
改变checkbox背景勾选样式