FileDocCategorySizeDatePackage
IteratorTag.javaAPI DocExample2650Mon Jul 23 13:26:50 BST 2007org.apache.struts2.views.jsp

IteratorTag

public class IteratorTag extends ComponentTagSupport
see
IteratorComponent

Fields Summary
private static final long
serialVersionUID
protected String
statusAttr
protected String
value
Constructors Summary
Methods Summary
public intdoAfterBody()

        boolean again = component.end(pageContext.getOut(), getBody());

        if (again) {
            return EVAL_BODY_AGAIN;
        } else {
            if (bodyContent != null) {
                try {
                    bodyContent.writeOut(bodyContent.getEnclosingWriter());
                } catch (Exception e) {
                    throw new JspException(e.getMessage());
                }
            }
            return SKIP_BODY;
        }
    
public intdoEndTag()

        component = null;
        return EVAL_PAGE;
    
public org.apache.struts2.components.ComponentgetBean(com.opensymphony.xwork2.util.ValueStack stack, javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse res)


            
        return new IteratorComponent(stack);
    
protected voidpopulateParams()

        super.populateParams();

        IteratorComponent tag = (IteratorComponent) getComponent();
        tag.setStatus(statusAttr);
        tag.setValue(value);
    
public voidsetStatus(java.lang.String status)

        this.statusAttr = status;
    
public voidsetValue(java.lang.String value)

        this.value = value;