Let's try the following code. The details of <c:forEach> tag and collection the I iterate is the a List of Map that I mentioned in this post: JSP JSTL < c: forEach > Tag
1
2
3
4
5
6
7
8
| <c:forEach var= "item" items= "${codingTipList}" varStatus= "loop" > <p> <c: if test= "${loop.first}" > [first element] </c: if > Item ${item} </p> </c:forEach> |
No comments:
Post a Comment