FileDocCategorySizeDatePackage
ParamTag.javaAPI DocGlassfish v2 API4551Sat May 05 19:17:58 BST 2007org.apache.taglibs.standard.tag.el.xml

ParamTag

public class ParamTag extends org.apache.taglibs.standard.tag.common.xml.ParamSupport

A handler for <param> that accepts attributes as Strings and evaluates them as expressions at runtime.

author
Shawn Bayern

Fields Summary
private String
name_
private String
value_
Constructors Summary
public ParamTag()

        super();
        init();
    
Methods Summary
public intdoStartTag()


        // evaluate any expressions we were passed, once per invocation
        evaluateExpressions();

	// chain to the parent implementation
	return super.doStartTag();
    
private voidevaluateExpressions()

        /* 
         * Note: we don't check for type mismatches here; we assume
         * the expression evaluator will return the expected type
         * (by virtue of knowledge we give it about what that type is).
         * A ClassCastException here is truly unexpected, so we let it
         * propagate up.
         */

	name = (String) ExpressionUtil.evalNotNull(
	    "param", "name", name_, String.class, this, pageContext);
	value = ExpressionUtil.evalNotNull(
	    "param", "value", value_, Object.class, this, pageContext);
    
private voidinit()

        // null implies "no expression"
	name_ = value_ = null;
    
public voidrelease()

        super.release();
        init();
    
public voidsetName(java.lang.String name_)

        this.name_ = name_;
    
public voidsetValue(java.lang.String value_)

        this.value_ = value_;