java代码097

code097.jsp

1<%@ page language="java" contentType="text/html; charset=UTF-8" 2 pageEncoding="UTF-8"%> 3<!DOCTYPE html> 4<html> 5<head> 6<meta charset="UTF-8"> 7<title>EL逻辑运算</title> 8</head> 9<body> 10<% 11request.setAttribute("userName", "tom"); 12request.setAttribute("pwd", "123"); 13 14%> 15userName = ${userName}<br> 16pwd = ${pwd}<br> 17\${userName !="" && (userName=="大王")} 18${userName !="" && (userName=="大王")} 19<br> 20\${userName == "tom" && pwd == "123"} 21${userName == "tom" && pwd == "123"} 22</body> 23</html>
点赞
收藏

评论区

加载中...

相关推荐

手写Java HashMap源码

HashMap的使用教程HashMap的使用教程HashMap的使用教程HashMap的使用教程HashMap的使用教程22

vue 后台管理系统菜单权限管理

来自:https://www.cnblogs.com/fqh123/p/11094296.html侵删login登录方法login(){if(!this.username){returnthis.$message.error("请输入用户名");}

java web中session简单的使用

1.jsp中操作session(String)request.getSession().getAttribute("username"); // 获取request.getSession().setAttribute("username", "xxx");  // 设置2.java中操作session//servlet中

java代码094

code094.jspEL表达式$userName\$userName$'虾米大王'$"虾米大王"$number1number2\$expression\$number<%一下是在EL中运算符号的优先级,由高到低.()(负号)not!empey/div%modltgtlege!eq

java代码100

code100.jsp获取requestScope范围的数据$requestScope.userName$sessionScope.manager$applicationScope.message

SSH 阿里云服务器

1.在服务机上操作创建要远程登录的用户和密码sudoadduserusername正在添加用户“username”...正在添加新组“username”(1001)...正在添加新用户“username”(1001)到组“username”...创建主目录“/home/username”...