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

DeclareTEI

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

An implementation of TagExtraInfo provided for <declare>. We simply set up a scripting variable for the ID and value that <declare> already stored. For EA2, DefineTEI *always* declares the variable; no option is given via a tag attribute. Visibility is always AT_END.

author
Shawn Bayern

Fields Summary
Constructors Summary
Methods Summary
public javax.servlet.jsp.tagext.VariableInfo[]getVariableInfo(javax.servlet.jsp.tagext.TagData data)

        // construct the relevant VariableInfo object
        VariableInfo id = new VariableInfo(
            data.getAttributeString("id"),
            data.getAttributeString("type") == null ?
		"java.lang.Object" : data.getAttributeString("type"),
            true,
            VariableInfo.AT_END);
        return new VariableInfo[] { id };