com.taggercat.tags
Class TCRemoveTag
java.lang.Object
javax.servlet.jsp.tagext.TagSupport
com.taggercat.tags.TCRemoveTag
- All Implemented Interfaces:
- java.io.Serializable, javax.servlet.jsp.tagext.IterationTag, javax.servlet.jsp.tagext.JspTag, javax.servlet.jsp.tagext.Tag
public class TCRemoveTag
- extends javax.servlet.jsp.tagext.TagSupport
This tag removes the named attribute from the specified scope. This tag
is usually used to remove attributes set with the TCOut, TCSet, and TCIf
tags.
Tag Attributes
- var the variable name
- scope the scope to remove the attribute from (defaults to page)
The scope can be one of:
page - default if not specified
session
request
application
- See Also:
- Serialized Form
-

| Fields inherited from interface javax.servlet.jsp.tagext.IterationTag |
EVAL_BODY_AGAIN |
| Fields inherited from interface javax.servlet.jsp.tagext.Tag |
EVAL_BODY_INCLUDE, EVAL_PAGE, SKIP_BODY, SKIP_PAGE |
|
Method Summary |
int |
doEndTag()
Process the end tag. |
int |
doStartTag()
Process the start tag for this instance. |
void |
setScope(java.lang.String scope)
Sets the scope of the attribute to remove. |
void |
setVar(java.lang.String variable)
Sets the name of the variable to remove. |
| Methods inherited from class javax.servlet.jsp.tagext.TagSupport |
doAfterBody, findAncestorWithClass, getId, getParent, getValue, getValues, release, removeValue, setId, setPageContext, setParent, setValue |
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
TCRemoveTag
public TCRemoveTag()
doEndTag
public int doEndTag()
throws javax.servlet.jsp.JspException
- Process the end tag. This method will be called on all Tag objects. All
instance state associated with this instance must be reset.
- Specified by:
doEndTag in interface javax.servlet.jsp.tagext.Tag- Overrides:
doEndTag in class javax.servlet.jsp.tagext.TagSupport
- Throws:
javax.servlet.jsp.JspException
- Returns:
- EVAL_PAGE
doStartTag
public int doStartTag()
throws javax.servlet.jsp.JspException
- Process the start tag for this instance. The doStartTag() method assumes
that all setter methods have been invoked before. When this method is
invoked, the body has not yet been invoked.
- Specified by:
doStartTag in interface javax.servlet.jsp.tagext.Tag- Overrides:
doStartTag in class javax.servlet.jsp.tagext.TagSupport
- Throws:
javax.servlet.jsp.JspTagException
javax.servlet.jsp.JspException
- Returns:
- EVAL_BODY_INCLUDE if the tag wants to process
body, SKIP_BODY if it does not want to process it.
setScope
public void setScope(java.lang.String scope)
- Sets the scope of the attribute to remove.
- Parameters:
scope - the scope value
setVar
public void setVar(java.lang.String variable)
- Sets the name of the variable to remove.
- Parameters:
variable - the variable name