I'm generating markup in c:forEach
loop. How can I determine that this loop is running last time so that I can generate some extra markup according to my requirement?
<c:forEach items="${sessionScope.leadListIs}" var="leadList">
<li>Test</li>
<!-- if this loop running final time then -->
<li>Last</li>
<!-- end-if -->
</c:forEach>
<li>Last</li>
after the loop?