choose、when、otherwise标签的用法 -通常这三个标签被放在一起配合使用 -<c:choose>标签嵌套在<c:when>和<c:otherwise>标签外面作为他们的夫标签来使用 -其中choose和when标签也可以一起组合使用 <!-- choose、when、otherwise标签的用法 --> <c:choose> <c:when test="${param.score<=100 && param.score>=60 }"> <c:out value="及格"></c:out> </c:when> <c:when test="${param.score<60 && param.score>=0 }"> <c:out value="不及格"></c:out> </c:when> <c:otherwise> <c:out value="请检查你的输入!"></c:out> </c:otherwise> </c:choose> Ps:用法类似于switch——case——default。
流程控制标签详解-choose、when、otherwise
通常有以下二种语法结构:
流程控制标签详解-choose、when、otherwise