I'm in a forEach
and would like to get an element (from listName
) with proportional id as forEach
loop element.
<% i=0; %>
<c:forEach var="account" items="${ctx.model.accounts}">
<c:out value="${listName.get(${i})}" />
<% i++; %>
</c:forEach>
Is this even possible?
I mean ${listName.get(${i})}
is of course wrong, but how can I get it.