To select last element of collection when looping in a JSP page, we just use varStatus attribute of <c:forEach> tag. During iterating each item, use an <c:if> tag to check the Status of the iteration.
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: 
<c:forEach var="item" items="${codingTipList}" varStatus="loop">
   <p>
       <c:if test="${loop.last}">
           [last element]
       </c:if>
       Item ${item}
   </p>
</c:forEach>
You can see the result like followings :