⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 customer_logic.jsp

📁 jsp开发详解第15章全部代码
💻 JSP
字号:
<%@ taglib prefix="c" uri="http://java.sun.com/jstl/core" %>
<%@ page contentType="text/html; charset=gb2312" language="java" %>
<jsp:useBean id="user" class="com.jspdev.ch3.TestBean"/>
<c:set value="24" target="${user}" property="age"/>
<c:set value="${param.userName}" target="${user}" property="userName"/>
<c:set value="${param.password}" target="${user}" property="password"/>
<html>
<head>
  <title>JSTL:自定义逻辑</title>
</head>
<body bgcolor="#FFFFFF">
<c:if test="${user.password=='hellking'}">
	<c:choose>
    <c:when test="${user.age <=18}">
      <font color="blue">
    </c:when>
    <c:when test="${user.age<=30&&user.age>18}">
      <font color="red">
    </c:when>
    <c:otherwise>
      <font color="green">	
    </c:otherwise>	
  </c:choose>  
  <c:if test="${user.userName=='hellking'}">
         你作为管理员登录
  </c:if>
  </font>
</c:if>

</body>
</html>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -