先加入<%@ taglib prefix=“c” uri=“http://java://java.sun.com/jsp/jstl/core”%>
if标签
<c:if test="${not empty lis}">
${li}为基数
</c:if>
<c:if test="@{numbers%2 !=0}">
S{numbers}为基数
</c:if>
choose标签
<c:choose>//相当于switch
<c:when test="${number==1}">星期一 </c:when>//相当于case
<c:when test="${number==2}">星期二 </c:when>
<c:when test="${number==3}">星期三</c:when>
<c:when test="${number==4}">星期五</c:when>
<c:when test="${number==5}">星期四</c:when>
<c:otherwise> 数字有误 </c:otherwise>//其他情况,相当于defaule
</c:choose>
foeach标签相当于for循环