JSTL函数内使用JSTL函数
${fn:contains(rest.methods, ${pay.id})} 这是错误的,实际上内部可以省略${}
正确写法:
${fn:contains(rest.methods, pay.id)}
<c:forEach items ="${pays}" var= "pay">
<div class ="col-xs-3">
<label class= "css-input css-checkbox css-checkbox-primary" >
<input type= "checkbox" < c:if test= "${fn:contains(rest.methods, pay.id)}">checked</c:if > value= "${pay.id}" ><span ></span > ${pay.name}<span ></span >
</label >
</div >
</c:forEach >