FileDocCategorySizeDatePackage
RemoveTag.javaAPI DocGlassfish v2 API4298Sat May 05 19:17:52 BST 2007org.apache.taglibs.standard.tag.common.core

RemoveTag

public class RemoveTag extends javax.servlet.jsp.tagext.TagSupport

A handler for the <remove> tag, which removes the variable identified by 'var' (and 'scope', if present).

author
Shawn Bayern

Fields Summary
private final String
APPLICATION
private final String
SESSION
private final String
REQUEST
private final String
PAGE
private int
scope
private boolean
scopeSpecified
private String
var
Constructors Summary
public RemoveTag()
Constructs a new handler. As with TagSupport, subclasses should not provide other constructors and are expected to call the superclass constructor.

					// tag attribute


    //*********************************************************************
    // Construction and initialization

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

        if (!scopeSpecified)
            pageContext.removeAttribute(var);
        else
            pageContext.removeAttribute(var, scope);
	return EVAL_PAGE;
    
private voidinit()

        var = null;
        scope = PageContext.PAGE_SCOPE;
        scopeSpecified = false;
    
public voidrelease()

        super.release();
        init();
    
public voidsetScope(java.lang.String scope)

        this.scope = Util.getScope(scope);
	scopeSpecified = true;
    
public voidsetVar(java.lang.String var)

	this.var = var;