JSTL Last Using varStatus Example explains about finding JSTL last count using varStatus
Consider a JSP page, which contains an ArrayList and we need to find the last count of that particular ArrayList
For this by declaring variable varStatus="status" in JSTL forEach, you can access all the available methods of status object inside JSP page
You can use 'status.last' inside c:forEach tag, this will find the last element of that particular ArrayList
This JSTL 'status.last' is available for all the List / Collection implementations in java
you can see the below example demonstrating JSTL 'status.last'