JSTL Core c:set

This JSTL is used to set the value of variable in request/session/application scope.

Example

<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c">
<c:set var="num" value="${10*2}" scope="request">
<c:out value="${num}"/>

Leave a Reply