<c:if test="${2>1}">
<c:out value="hello world!"/>
</c:if>
注:在test的右边也可以放EL表达式如
<c:forEach items="${entryList}" var="blogEntry" varStatus="status">
<c:if test="${status.first}">
<tr>
<td align="left" class="blogDate">
<c:out value="${blogEntry.created}"/>
</td>
</tr>
</c:if>
</c:forEach>
entryList这个集合必须自己事先定义好。
<c:out value="hello world!"/>
</c:if>
注:在test的右边也可以放EL表达式如
<c:forEach items="${entryList}" var="blogEntry" varStatus="status">
<c:if test="${status.first}">
<tr>
<td align="left" class="blogDate">
<c:out value="${blogEntry.created}"/>
</td>
</tr>
</c:if>
</c:forEach>
entryList这个集合必须自己事先定义好。