Hi there,
I have two arrayLists, one contains a list of ids and the other contains a list of names. The ids and the names in a particular position in their arrayList correspond so that the id in position one corresponds to the name in position one.
I want to use <c:forEach> to iterate through these arraylists so that the names and corresponding Ids are printed together. Is this possible?
For example, I want to use the id as part of a url and the name to be what the user clicks on.
<c:forEach var="k" items="${inbox.id}">
<a href="ProfileServlet?id=${k}">${inbox.name[x]}</a>,
</c:forEach>
Is there a way to perhaps increment a variable, x in ${inbox.name[x]}
Hope Im making myself clear! Thanks!