Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
<%request.removeAttribute("name"); %>
如何在jsp中删除具有请求范围的“名称”属性?(没有scriptlet)
JSTL 有一个<c:remove>标签:
<c:remove>
<c:remove var="name" scope="request"/>
也就是说,JSP 是视图组件,用于生成标记。他们应该读取属性,而不是设置和删除它们,恕我直言。