JSTL Core c:if

This JSTL tag is used to check an expression and display body content.

 
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<c:set var="num" value="${10}">
<c:if test="${number<10}">
<c:out value="num is less than 10"></c:out>
</c:if>

Leave a Reply