본문 바로가기
JSP

23.02.26 [JSTL] c:forEach 같은 index 사용하기

by SoulMania 2023. 3. 1.

중첩된 c:forEach문에서 같은 index 사용하는 법

<c:forEach var="first" items="${firstList}" varStatus="status">
	<c:forEach var="sec" items="${secondList[status.index]}" >
    </c:forEach>
</c:forEach>