Methods Summary |
---|
public int | doAfterBody()Makes the next element available to the body in a variable
with the name specified by the loopId attribute, or returns
SKIP_BODY if all elements have been processed.
if (iterator.hasNext()) {
pageContext.setAttribute(var, iterator.next());
return EVAL_BODY_AGAIN;
}
else {
return SKIP_BODY;
}
|
public int | doStartTag()
iterator = items.iterator();
if (iterator.hasNext()) {
pageContext.setAttribute(var, iterator.next());
return EVAL_BODY_INCLUDE;
}
else {
return SKIP_BODY;
}
|
public void | release()Releases all instance variables.
iterator = null;
items = null;
var = null;
super.release();
|
public void | setItems(java.util.Collection items)
this.items = items;
|
public void | setVar(java.lang.String var)
this.var = var;
|