FileDocCategorySizeDatePackage
WhenTag.javaAPI DocGlassfish v2 API4010Sat May 05 19:17:56 BST 2007org.apache.taglibs.standard.tag.el.core

WhenTag

public class WhenTag extends org.apache.taglibs.standard.tag.common.core.WhenTagSupport

Tag handler for <when> in JSTL's expression-evaluating library.

author
Shawn Bayern

Fields Summary
private String
test
Constructors Summary
public WhenTag()

        super();
        init();
    
Methods Summary
protected booleancondition()

        try { 
            Object r = ExpressionEvaluatorManager.evaluate(
                "test", test, Boolean.class, this, pageContext);
            if (r == null)
	        throw new NullAttributeException("when", "test");
            else
                return (((Boolean) r).booleanValue());
	} catch (JspException ex) {
	    throw new JspTagException(ex.toString(), ex);
	}
    
private voidinit()

        test = null;
    
public voidrelease()

        super.release();
        init();
    
public voidsetTest(java.lang.String test)

        this.test = test;