ex1)
<c:forEach items="${fileList}" var="current" varStatus="status">
<c:out value="${current.fileName}" />
<c:out value="${current.path}" />
<c:if test="${!status.last}">,</c:if>
</c:forEach>
ex2)
<ul >
<c:set var="count" value="0" />
<c:forEach items="${rltdEvent}" var="data" varStatus="status">
<c:if test="${status.index%2 == 0 }">
<li class="first last"><a href="#" title="새창으로 열기">${data.title}'</a></li>
</c:if>
<c:if test="${status.index%2 == 1 }">
<li class="last"><a href="#" title="새창으로 열기">${data.title}'</a></li>
</c:if>
<c:if test="${status.last}">
<c:if test="${count%2 == 1}">
<li class="first last end"><a href="#" title="새창으로 열기">${data.title}'</a></li>
</c:if>
<c:if test="${count%2 == 0}">
<li class="last"><a href="#" title="새창으로 열기">${data.title}'</a></li>
</c:if>
</c:if>
<c:set var="count" value="${count+1}" />
</c:forEach>
</ul>
ex2)
<ul >
<c:set var="count" value="0" />
<c:forEach items="${rltdEvent}" var="data" varStatus="status">
<c:if test="${status.index%2 == 0 }">
<li class="first last"><a href="#" title="새창으로 열기">${data.title}'</a></li>
</c:if>
<c:if test="${status.index%2 == 1 }">
<li class="last"><a href="#" title="새창으로 열기">${data.title}'</a></li>
</c:if>
<c:if test="${status.last}">
<c:if test="${count%2 == 1}">
<li class="first last end"><a href="#" title="새창으로 열기">${data.title}'</a></li>
</c:if>
<c:if test="${count%2 == 0}">
<li class="last"><a href="#" title="새창으로 열기">${data.title}'</a></li>
</c:if>
</c:if>
<c:set var="count" value="${count+1}" />
</c:forEach>
</ul>