FileDocCategorySizeDatePackage
ForEachTEI.javaAPI DocGlassfish v2 API2812Sat May 05 19:18:02 BST 2007org.apache.taglibs.standard.tei

ForEachTEI

public class ForEachTEI extends javax.servlet.jsp.tagext.TagExtraInfo

An implementation of TagExtraInfo that implements validation for ForEachTag's attributes

author
Shawn Bayern

Fields Summary
private static final String
ITEMS
private static final String
BEGIN
private static final String
END
Constructors Summary
Methods Summary
public booleanisValid(javax.servlet.jsp.tagext.TagData us)


    /*
     * Currently implements the following rules:
     * 
     * - If 'items' is not specified, 'begin' and 'end' must be
     */
        
        if (!Util.isSpecified(us, ITEMS))
            if (!Util.isSpecified(us, BEGIN) || !(Util.isSpecified(us, END)))
                return false;
        return true;