taglib
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@taglib prefix="f" uri="http://java.sun.com/jsp/jstl/functions"%>
forEach 문
<c:forEach var="item" value="${list}">${item.value}</c:forEach>
<c:forEach varStatus="i" begin="0" end="10">
${i.index}
</c:forEach>
if 문
<c:if test="${조건문}">
</c:if>
<c:if test="${not empty status}">
</c:if>
else if 문
<c:choose>
<c:when test="${조건문}">
</c:when>
<c:otherwise>
</c:otherwise>
</c:choose>
문법
== : eq,
!= : ne,
null == : empty
null != : not empty
변수 선언
<c:set var="length" value="${f:length(list)}">