FileDocCategorySizeDatePackage
SetBundleTag.javaAPI DocGlassfish v2 API4288Sat May 05 19:17:56 BST 2007org.apache.taglibs.standard.tag.el.fmt

SetBundleTag

public class SetBundleTag extends org.apache.taglibs.standard.tag.common.fmt.SetBundleSupport

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

author
Shawn Bayern
author
Jan Luehe

Fields Summary
private String
basename_
Constructors Summary
public SetBundleTag()
Constructs a new SetBundleTag. As with TagSupport, subclasses should not provide other constructors and are expected to call the superclass constructor

        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()


	// 'basename' attribute (mandatory)
	basename = (String) ExpressionEvaluatorManager.evaluate(
	    "basename", basename_, String.class, this, pageContext);
    
private voidinit()

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

        super.release();
        init();
    
public voidsetBasename(java.lang.String basename_)

        this.basename_ = basename_;