<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %> <c:set var="chase" value="2"/> <c:choose> <c:when test="${chase==1}"> Case 1 </c:when> <c:when test="${chase==2}"> case 2 </c:when> <c:otherwise> all other cases </c:otherwise> </c:choose>