码迷,mamicode.com
首页 > Web开发 > 详细

jsp c标签不遍历的方法

时间:2018-05-09 15:03:14      阅读:188      评论:0      收藏:0      [点我收藏+]

标签:遍历   stat   status   for   bsp   item   reac   [1]   res   

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

一般遍历必须要

<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>

 

jsp c标签不遍历的方法

标签:遍历   stat   status   for   bsp   item   reac   [1]   res   

原文地址:https://www.cnblogs.com/sunxun/p/9013163.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!