分类: Java
2009-09-21 17:00:36
1 foreach标签的使用
<logic:notEmpty name="studentList">
<c:forEach var="student" items="${studentList}">
<tr >
<td> ${student.name}td>
tr>
c:forEach>
logic:notEmpty>
<c:if test="${subreturn=='sub_view'}">
c:if>
其中,这里的subretun, item, type,都是当前JSP页面可取得的数据,它们存在于如request,session里
<td>
<c:if test="${item.spersonState>0&&item.ruleState>0}">
已发布
c:if>
td>
这里主要是体现多个条件怎么用,和平时的if类似 用:&&, ||