com.taggercat.tags
Class UserSettingTag
java.lang.Object
javax.servlet.jsp.tagext.TagSupport
com.taggercat.tags.UserSettingTag
- All Implemented Interfaces:
- java.io.Serializable, javax.servlet.jsp.tagext.IterationTag, javax.servlet.jsp.tagext.JspTag, javax.servlet.jsp.tagext.Tag
public class UserSettingTag
- extends javax.servlet.jsp.tagext.TagSupport
This tag is typically used to display or to control the display of content based upon the existence and
value of a user setting. This tag is nearly identical to the CookieDisplayValue tag.
But, with the CookieDisplayValue tag, the keys are browser cookies.
The tag returns the empty or nonempty attribute values depending
upon the existence of the named user setting. If the empty attribute is not set, and
the setting 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 |
UserSettingTag
public UserSettingTag()
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)