I have 5 variables that need to be used inside a foreach thats opened, so I named each variable like IMG1 IMG2 IMG3 IMG4 IMG5. I would like to know how to call the src of the image like this
src="${IMG + index of the foreach}"
so it call foreach a new image.
edit:
i have this five variables
<c:set var="imgPN1" value="23421E1" />
<c:set var="imgPN2" value="32543QS" />
<c:set var="imgPN3" value="23945ZS" />
<c:set var="imgPN4" value="23421E0" />
<c:set var="imgPN5" value="34352WS" />
and inside a foreach i need to place each of this variable in an image src so, the problem is that i count use another foreach inside the foreach already used, cause will generate 25 img instead of 5, so what i would need, is using varstatus or some index, be able to do inside the foreach already created something like this so it picks up the variable with its proper name.