jsp 判断标签的使用
<%@ taglib uri="http://java.sun.com/jstl/core" prefix="c" %>
<c:if test="${entity.gender == 1 }">男</c:if>
<c:if test="${entity.gender == 2 }">女</c:if>
<c:choose>
<c:when test="${pageType=="manage"}">
aaaa
</c:when>
<c:when test="${pageType=="sale"}">
bbbbbbbb
</c:when>
<c:otherwise>
cccccccccccc
</c:otherwise>
</c:choose>声明:该文观点仅代表作者本人,牛骨文系教育信息发布平台,牛骨文仅提供信息存储空间服务。
- 上一篇: JSTL C标签 <c:if>判断参数是否为空
- 下一篇: 架构高性能网站秘笈(四)——反向代理缓存
