I have the following code:
<c:forEach items="${mergeList}" var="sublist" varStatus="index">
<c:forEach items="${sublist}" var="item" varStatus="row">
So my intention is to display each 'item' in a list. When the user does click over a row, open a floating window with the full item description. I set the variables with the request scope so I can get them in the other form,
<c:set var="merge0" value="${sublist[0]}" scope="request" />
<c:set var="merge1" value="${sublist[1]}" scope="request" />
<c:set var="merge2" value="${sublist[2]}" scope="request" />
But the problem comes when I set the variables in every iteration so when the floating is opened it always appears the last elements of the list, of course is overwriting every time. I know what's the problem but not how to solve it.
Any suggestion?