How do we use the loop status object in the tag body?
There is a varStatus attribute in the c:forEach tag. It's type is javax.servlet.jsp.jstl.core.LoopTagStatus. If you look at the
LoopTagStatus API, you'll see that the following information is available : begin, count, current, end, index, step.
For example, the following will print the iteration count next to an album title :