JSTL List Count Using varStatus Example explains about finding JSTL List Count Using varStatus
Consider a JSP page, which contains an ArrayList and we need to find the exact 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 JSTL 'status.count' for finding the number of elements available on that particular ArrayList.
This JSTL 'status.count' is available for all the List / Collection implementations in java
you can see the below example demonstrating JSTL 'status.count'