天天看點

JSP 基礎之 JSTL 用法 if else

<c:choose>  
  <c:when test="${condition1}">  
         condition1為true  
  </c:when>  
  <c:when test="${ condition2}">  
	  condition2為true  
  </c:when>  
  <c:otherwise>  
 	 condition1和condition2都為false  
  </c:otherwise>  
</c:choose>