<c:if test="${status.totalVisits == 1000000}" var="visits"> You are the millionth visitor to our site! Congratulations! </c:if>
<c:choose> <c:when test="${item.type == book }"> ... </c:when> <c:when test="${item.type == electronics }"> ... </c:when> <c:when test="${item.type == toy }"> ... </c:when> <c:otherwise> ... </c:otherwise> </c:choose>
<table> <c:forEach var="name" items="${customerNames}"> <tr><td><c:out value="${name}"/></td></tr> </c:forEach> </table>
<table> <c:forTokens items="47,52,53,55,46,22,16,2" delim="," var="dailyPrice"> <tr><td><c:out value="${dailyPrice}"/></td></tr> </c:forTokens> </table>
<%@ taglib uri="http://java.sun.com/jstl/core" prefix="c" %> <html> <body> <head> <title>Parameter Listing Example</title> </head> <br> <b>Parameter values passed to this page for each parameter: </b> <table border="2"> <c:forEach var="current" items="${param}"> <tr> <td> <b><c:out value="${current.key}" /></b> </td> <c:forEach var="aVal" items="${paramValues[current.key]}"> <td> <c:out value="${aVal}" /> </td> </c:forEach> </tr> </c:forEach> </table> </body> </html>
<c:url value="http://acme.com/exec/register" var="myUrl"> <c:param name="name" value="${param.name}"/> <c:param name="country" value="${param.country}"/> </c:url> <a href= <c:out value="${myUrl}"/> >Register</a>