jsp c标签不遍历的方法

生产中遇到过不需要遍历的事情。

一般遍历必须要

<c:forEach items="${resultObj.xxx}" var="data" varStatus="status">
<c:forEach>

可是现在遍历了会变麻烦,于是就寻找不用遍历的方法。

<c:if test="${resultObj.lxxx[0] == 0}">checked="checked"</c:if>
<c:if test="${resultObj.lxxx[1] == 1}">checked="checked"</c:if>
原文地址:https://www.cnblogs.com/sunxun/p/9013163.html