码迷,mamicode.com
首页 > 其他好文 > 详细

<c:forEach>

时间:2016-04-19 12:04:11      阅读:117      评论:0      收藏:0      [点我收藏+]

标签:

<c:forEach>标签的语法定义如下所示。

                    <c:forEach var="name" items="expression" varStatus="name" 

                             begin="expression" end="expression" step="expression">

                             body content 

                    </c:forEach>

常用的属性<c:forEach var="xx" items="expression" varStatus="status" > 

<c:if test="${status.first}"><c:set var="firstPrice">${xx}</c:set></c:if>

</c:forEach>

 

<c:set var="salary" scope="session" value="${2000*2}"/>
<c:out value="${salary}"/>

<c:forEach>

标签:

原文地址:http://www.cnblogs.com/qianduanxiaocaij/p/5407419.html

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