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

OutTag

public class OutTag extends org.apache.taglibs.standard.tag.common.core.OutSupport

A handler for <out>, which redirects the browser to a new URL.

author
Shawn Bayern

Fields Summary
private String
value_
private String
default_
private String
escapeXml_
Constructors Summary
public OutTag()

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

	try {
	    value = ExpressionUtil.evalNotNull(
	        "out", "value", value_, Object.class, this, pageContext);
	} catch (NullAttributeException ex) {
	    // explicitly allow 'null' for value
	    value = null;
	}
	try { 
	    def = (String) ExpressionUtil.evalNotNull(
	        "out", "default", default_, String.class, this, pageContext);
	} catch (NullAttributeException ex) {
	    // explicitly allow 'null' for def
	    def = null;
	}
	escapeXml = true;
	Boolean escape = ((Boolean) ExpressionUtil.evalNotNull(
	    "out", "escapeXml", escapeXml_, Boolean.class, this, pageContext));
	if (escape != null)
	    escapeXml = escape.booleanValue();
    
private voidinit()

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

        super.release();
        init();
    
public voidsetDefault(java.lang.String default_)

        this.default_ = default_;
    
public voidsetEscapeXml(java.lang.String escapeXml_)

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

        this.value_ = value_;