1.c:if
<c:if test=""></c:if>
c:when的test里可以是變量或者是一個EL表達式,其結果應該是true或者false。
EL表達式具體參考http://blog.csdn.net/yolanda_nuonuo/article/details/52680036
2.c:choose
<c:choose>
<c:whentest="">
情況一
</c:when>
<c:otherwise>
情況二
</c:otherwise>
</c:choose>
3.c:forEach
<c:forEachbegin="1"end="3" step="1"varStatus="leftInfo">
<divid="leftInfo${leftInfo.current}">
</div>
</c:forEach>
這里的${leftInfo.current}會從1取到3
4.根據條件改變一個class
<divclass="boarding<c:if test=''>_p</c:if>" >
可以在css文件中寫兩個屬性,一個是boarding一個是boarding_p