I'm writing JSP / JSTL, and I'm trying to iterate over several items in a database.
I currently have three columns in the database, ${image1}
, ${image2}
and ${image3}
. I'm trying to use the following code to print out information for them:
<c:forEach begin="1" end="3" var="i">
${image${i}}
</c:forEach>
Is there any way I can make this work?