Articles > Servlets > How to get last element of collection in JSTL
How to get last element of collection in JSTL
Author: Venkata Sudhakar
The below example shows how to get last element of collection in JSTL. You may use statusVariable.last to check whether the element being iterated is the last element.