List of usage examples for javax.servlet.jsp.jstl.core LoopTagStatus getCount
public int getCount();
Retrieves the "count" of the current round of the iteration.
From source file:net.longfalcon.taglib.TextFunctions.java
public static String cycle(LoopTagStatus loopTagStatus, String... strings) { int cycle = loopTagStatus.getCount() % strings.length; return (strings[cycle]); }