标签:获取对象 ESS use order ati jsp att sts 注意
获取page、request、session、application对象中的数据
<%
pageContext.setAttribute("name","page");
request.setAttribute("name","request");
session.setAttribute("name","session");
application.setAttribute("name","application");
%>
${name} ---结果为page
${requestScope.name}
${pageScope.name}
${sessionScope.name}
${applicationScope.name}
<%
User user = new User("1","claudxyz",20);
pageContext.setAttribute("user",user);
%>
${user}
<table border="1">
<tr>
<th>用户号</th>
<th>姓名</th>
<th>年龄</th>
</tr>
<tr>
<td>${user.id}</td>
<td>${user.name}</td>
<td>${user.age}</td>
</tr>
</table>
&& and
|| or
! not
== eq
!= ne
< lt
> gt
<= le
>= ge
empty
标签:获取对象 ESS use order ati jsp att sts 注意
原文地址:https://www.cnblogs.com/claduxyz/p/12438850.html