JSTL c:remove Core Tag

The JSTL <c:remove> Core Tag is used to remove a variable from a specific scope.


<c:remove var="varName"/>

c:remove tag attributes:

Attribute Description Required
var It specify the name of the variable to be removed. Yes
scope It specify the scope of the variable to be removed. No



<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
	<title>c:remove JSTL core tag example</title>
    <c:set var="website" value="www.w3spoint.com"/>
    Before removing the variable value:<c:out value="${website}"/><br/>
    <c:remove var="website"/>
    After removing the variable value:<c:out value="${website}"/>




jsp example 33
Download this example.
Next Topic: JSTL c:catch Core Tag with example.
Previous Topic: JSTL c:set Core Tag with example.


Please Share