18.05.02

  • 三个标签嵌套使用
 <c:set var="score">85</c:set>
    <c:choose>
    <c:when test="${score>=90}">
    你的成绩为优秀!
    </c:when>
    <c:when test="${score>=70&&score<90}">
    您的成绩为良好!
    </c:when>
    <c:when test="${score>60&&score<70}">
    您的成绩为及格
    </c:when>
    <c:otherwise>
    对不起,您没有通过考试!
    </c:otherwise>
    </c:choose>

-JSP 页面常用4种标签(很详细)
- https://blog.csdn.net/bobo_93/article/details/52699171

猜你喜欢

转载自blog.csdn.net/yw2567/article/details/80166814