在写JSP时用得比较多的就是JSTL的if...else...逻辑判断了。简单记录一下它的语法:
<c:choose>
<c:when test="${empty parameterA}">
</c:when>
<c:when test="${parameterB eq conditionStrA}">
</c:when>
<c:when test="${parameterC ne conditionStrB}">
</c:when>
<c:otherwise>
</c:otherwise>
</c:choose>版权声明:本文为博主原创文章,未经博主允许不得转载。
原文地址:http://blog.csdn.net/cloume/article/details/46712287