📄 c_remove.jsp
字号:
<%@ taglib prefix="c" uri="http://java.sun.com/jstl/core" %>
<%@ page contentType="text/html; charset=gb2312" language="java" %>
<html>
<head>
<title>JSTL:c:remove的使用</title>
</head>
<body bgcolor="#FFFFFF">
<c:set value="10000" var="maxUser" scope="application"/>
<c:set value="20" var="maxIdelTime" scope="session"/>
<c:set value="hellking" var="accountId" scope="request"/>
<c:set value="next.jsp" var="nextPage" scope="page"/>
在没有调用c:rmeove之前,有这些参数:
maxUser=<c:out value="${maxUser}"/>,
maxIdelTime=<c:out value="${maxIdelTime}"/>,
accountId=<c:out value="${accountId}"/>,
nextPage=<c:out value="${nextPage}"/>。
<hr>调用c:remove...
<c:remove var="maxUser" scope="application"/>
<c:remove var="maxIdelTime" scope="session"/>
<c:remove var="accountId" scope="request"/>
<c:remove var="nextPage" scope="page"/>
调用了c:remove后,这些参数值为:
maxUser=<c:out value="${maxUser}"/>,
maxIdelTime=<c:out value="${maxIdelTime}"/>,
accountId=<c:out value="${accountId}"/>,
nextPage=<c:out value="${nextPage}"/>,
</body>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -