March 2, 2011

JSTL 1.1 - <c:remove> example


<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<c:set var="name" value="Dinesh" scope="session" />
<c:out value="${sessionScope.name}" /><br/>
<c:remove var="person" scope="session" />
<c:out value="${sessionScope.name}" /><br/>


prints, (the second <c:out> does not display anything)


Dinesh



No comments:

Post a Comment