权限
<c:forEach items="${allcd}" var="item">
<div class="form-group">
<div class="col-xs-8 ">
<input class="form-span" type="checkbox" name="cd" value="${item.id }"
<c:forEach items="${usercd }" var="useritem">
<c:if test="${item.id ==useritem.id }">
checked="checked"
</c:if>
</c:forEach>
/> <span class="col-xs-8 form-span">${item.menuName}</span>
</div>
</div>
</c:forEach>
得到id 或者 name 的值
$("#id").attr("id")
jsp中写js可以写这样的代码遍历module传来的值
var listyxzddReqtab=[0,0,0,0,0,0,0,0,0,0,0,0];
<c:forEach items="${tPayordValue.listyxzdd}" var="item">
for(var i=1;i<=12;i++)
{
if("${item.ordDt}"==i)
{
listyxzddReqtab[i-1]="${item.gyyxzdd}";
}
yxzdd+=Number(listyxzddReqtab[i-1]);
}
</c:forEach>
el表达式和input的结合
<input type="text" name="deptName" class="form-control" class="text_add" value="<c:out value='${user.deptName}'/>" readonly />
js :encodeURIComponent(encodeURIComponent(cmp("payListPl_jfqc").getValue()))
java :URLDecoder.decode(par.get("yxsdm").toString(), "UTF-8")