I think I understand what you mean, you have two arrays (possibly of equal size), and you want the loop to use the loop index to access each array.
If this is what you had in mind (and this is far from clear from your question), then you can do something like this (assuming arrayX and arrayY ).
<c:forEach items="${arrayX}" varStatus="loop"> <c:out value="${arrayX[loop.index]}"/> <c:out value="${arrayY[loop.index]}"/> </c:forEach>
This uses arrayX to get an iterator, but then uses indexed queries in arrayX and arrayY .
varStatus described here .
skaffman
source share