コンテンツにスキップ

jsp choose,when,otherwise#

<c:choose>  
    <c:when test="${age >= 30}">30代以上</c:when>  
    <c:when test="${age >= 20}">20代</c:when>  
    <c:when test="${age >= 10}">10代</c:when>  
    <c:otherwise>10歳以下</c:otherwise>  
</c:choose>

jsp if文


References#

Tags#

  • #java/jsp