39 lines
1008 B
Plaintext
39 lines
1008 B
Plaintext
|
|
<%@ page contentType="text/html;charset=GB2312" %>
|
|||
|
|
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
|
|||
|
|
<html>
|
|||
|
|
<head>
|
|||
|
|
<title>JSTL<54><4C><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>̿<EFBFBD><CCBF>Ƶı<C6B5>ǩ</title>
|
|||
|
|
</head>
|
|||
|
|
<body>
|
|||
|
|
<h2><3E><>ǩc:if<69><66>ʹ<EFBFBD><CAB9></h2>
|
|||
|
|
<c:if test="${param.username == 'Tom'}" var="condition" scope="session">
|
|||
|
|
<20><><EFBFBD><EFBFBD>,Tom
|
|||
|
|
</c:if>
|
|||
|
|
<c:if test="${param.username == 'Jerry'}" var="condition" scope="session">
|
|||
|
|
<20><><EFBFBD><EFBFBD>,Jerry
|
|||
|
|
</c:if>
|
|||
|
|
<c:if test="${param.username == 'Mike'}" var="condition" scope="session">
|
|||
|
|
<20><><EFBFBD><EFBFBD>,Mike
|
|||
|
|
</c:if>
|
|||
|
|
<c:if test="${param.username == 'Ben'}" var="condition" scope="session">
|
|||
|
|
<20><><EFBFBD><EFBFBD>,Ben
|
|||
|
|
</c:if>
|
|||
|
|
<h2><3E><>ǩc:choose c:when c:otherwiseʹ<65><CAB9></h2>
|
|||
|
|
<c:choose>
|
|||
|
|
<c:when test="${param.username == 'Tom'}">
|
|||
|
|
<20><><EFBFBD><EFBFBD>,Tom
|
|||
|
|
</c:when>
|
|||
|
|
<c:when test="${param.username == 'Jerry'}">
|
|||
|
|
<20><><EFBFBD><EFBFBD>,Jerry
|
|||
|
|
</c:when>
|
|||
|
|
<c:when test="${param.username == 'Mike'}">
|
|||
|
|
<20><><EFBFBD><EFBFBD>,Mike
|
|||
|
|
</c:when>
|
|||
|
|
<c:otherwise>
|
|||
|
|
<20><><EFBFBD><EFBFBD>,Ben
|
|||
|
|
</c:otherwise>
|
|||
|
|
</c:choose>
|
|||
|
|
|
|||
|
|
</body>
|
|||
|
|
</html>
|