code097.jsp

<%@ page language="java" contentType="text/html; charset=UTF-8"    pageEncoding="UTF-8"%>EL逻辑运算<%request.setAttribute("userName", "tom");request.setAttribute("pwd", "123");%>userName = ${userName}
pwd = ${pwd}
/${userName !="" && (userName=="大王")}${userName !="" && (userName=="大王")}
/${userName == "tom" && pwd == "123"}${userName == "tom" && pwd == "123"}