FileDocCategorySizeDatePackage
SimpleLoopTag.javaAPI DocExample724Tue Feb 28 11:34:06 GMT 2006com.ora.jsp.tags.xmp

SimpleLoopTag

public class SimpleLoopTag extends SimpleTagSupport

Fields Summary
private Collection
items
private String
var
Constructors Summary
Methods Summary
public voiddoTag()

	JspFragment body = getJspBody();
	if (body != null) {
	    Iterator i = items.iterator();
	    while (i.hasNext()) {
		Object currValue = i.next();
		getJspContext().setAttribute(var, currValue);
		body.invoke(null);
	    }
	}
    
public voidsetItems(java.util.Collection items)

        this.items = items;
    
public voidsetVar(java.lang.String var)

        this.var = var;