java代码097

code097.jsp

<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>EL逻辑运算</title>
</head>
<body>
<%
request.setAttribute("userName", "tom");
request.setAttribute("pwd", "123");

%>
userName = ${userName}<br>
pwd = ${pwd}<br>
\${userName !="" && (userName=="大王")}
${userName !="" && (userName=="大王")}
<br>
\${userName == "tom" && pwd == "123"}
${userName == "tom" && pwd == "123"}
</body>
</html>

评论

h
hw_7864

⭐️ Admin快速开发: https://show.cool-admin.com/

赞 0
h
hw_7864

⭐️ 官方文档: https://cool-js.com

赞 0
h
hw_7864

⭐️ chatgpt在线体验: https://cool-js.com/ai/chat-vip/index.html?r=helloworld

赞 0