This week's book giveaway is in the OCAJP 8 forum. We're giving away four copies of OCA Java SE 8 Programmer I Study Guide and have Edward Finegan & Robert Liguori on-line! See this thread for details.
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 :