List of usage examples for javax.servlet.jsp.jstl.core LoopTagSupport getLoopStatus
public LoopTagStatus getLoopStatus()
From source file:com.jada.taglib.language.LanguageTagSupport.java
public String findName() { if (indexed == null || !indexed.equals("true")) { return property; }/*from w ww . jav a2s .c o m*/ LoopTagSupport loopTag = (LoopTagSupport) TagSupport.findAncestorWithClass(this, LoopTagSupport.class); String result = ""; result += name + "[" + loopTag.getLoopStatus().getIndex() + "]." + property; return result; }
From source file:com.jada.taglib.language.LanguageTagSupport.java
public String findName(String prop) { if (indexed == null || !indexed.equals("true")) { return prop; }/*from w ww.j av a2 s. c om*/ LoopTagSupport loopTag = (LoopTagSupport) TagSupport.findAncestorWithClass(this, LoopTagSupport.class); String result = ""; result += name + "[" + loopTag.getLoopStatus().getIndex() + "]." + prop; return result; }