<%--
Created by IntelliJ IDEA.
User: 23839
Date: 2021/11/22
Time: 8:37
To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ page import="java.util.ArrayList" %>
<%@ page import="com.zcc.pojo.*"%>
<html>
<head>
<title>El表达式显示</title>
</head>
<body>
<b><%= ((User)request.getAttribute("user")).toString()%></b>
<b><%= ((ArrayList)request.getAttribute("uList")).get(1).toString()%></b><br>
<b><%= ((ArrayList)request.getAttribute("uList")).get(0).toString()%></b><br>
<b><%= ((ArrayList)request.getAttribute("uList")).size()%></b>
<b>我知道这个El怎么使用的!${str}</b>
<b>${uList[0]}</b>
<b>${uList[1]}</b>
<b>${uList[2]}</b>
<%
pageContext.setAttribute("hello","helloPagContext");
request.setAttribute("hello","helloRequest");
session.setAttribute("hello","helloSession");
application.setAttribute("hello","helloApplication");
%>
${sessionScope.hello}
${requestScope.hello}
${pageScope.hello}
${applicationScope.hello}
${1+2}--${1*2}--${1/2}--${1%3}
<br>${empty str}
<hr>${header.entrySet()}
<hr>${headerValues["Accept-Language"][0]}
<hr>${cookie}
<hr>${cookie.JSESSIONID}
<hr>${cookie.JSESSIONID.name}
<hr>${cookie.JSESSIONID.value}
</body>
</html>