一.EL表达式
<body>
<%
pageContext.setAttribute("name", "页面范围的page域");
request.setAttribute("name", "请求域");
//会话域,整个会话范围的域
session.setAttribute("name", "会话范围的域");
//切记application在jsp中代替了servletContext域
application.setAttribute("name", "整个应用的域");
%>
<!-- EL表达式,用$加上给setAttribute中的值 -->
${pageScope.name} ---相当于代替了--- <%=pageContext.getAttribute("name") %> </br>
${requestScope.name }
${sessionScope.name }
${applicationScope.name }
</body>
二.EL执行运算
EL算术运算符
EL关系运算符
EL逻辑运算符
二.JSTL核心类库(转发链接:https://blog.youkuaiyun.com/zkdceo/article/details/70045932 )
<c:out>
<c:set>
<c:remove>:删除-------->不常用
<c:catch> :捕获异常---->不常用