com.taggercat.tags
Class CookieDisplayValueTag
java.lang.Object
javax.servlet.jsp.tagext.TagSupport
com.taggercat.tags.CookieDisplayValueTag
- All Implemented Interfaces:
- java.io.Serializable, javax.servlet.jsp.tagext.IterationTag, javax.servlet.jsp.tagext.JspTag, javax.servlet.jsp.tagext.Tag
public class CookieDisplayValueTag
- extends javax.servlet.jsp.tagext.TagSupport
This tag is typically used to control display content based upon the existence and
value of a browser cookie.
The tag returns the empty or nonempty attribute values depending
upon the existence of the named cookie. If the empty attribute is not set, and
the cookie is empty, then the tag returns an empty string.
Here is an example using the tag to select one of two alternate images:
- 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 |
| 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 |
CookieDisplayValueTag
public CookieDisplayValueTag()
doEndTag
public int doEndTag()
throws javax.servlet.jsp.JspException
- Specified by:
doEndTag in interface javax.servlet.jsp.tagext.Tag- Overrides:
doEndTag in class javax.servlet.jsp.tagext.TagSupport
- Throws:
javax.servlet.jsp.JspException
doStartTag
public int doStartTag()
throws javax.servlet.jsp.JspException
- Specified by:
doStartTag in interface javax.servlet.jsp.tagext.Tag- Overrides:
doStartTag in class javax.servlet.jsp.tagext.TagSupport
- Throws:
javax.servlet.jsp.JspException
getName
public java.lang.String getName()
- Returns:
- Returns the name.
setName
public void setName(java.lang.String name)
- Parameters:
name - The name to set.
getEmpty
public java.lang.String getEmpty()
setEmpty
public void setEmpty(java.lang.String empty)
getNonempty
public java.lang.String getNonempty()
setNonempty
public void setNonempty(java.lang.String nonempty)