com.taggercat.tags
Class CookieDisplayValueTag

java.lang.Object
  extended by javax.servlet.jsp.tagext.TagSupport
      extended by 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:

<a href="javascript:toggleSectionDisplay('DeployedServer.1806468856');" > <img src='Images/<tc:cookieDisplay name="DeployedServer.1806468856" empty="MinusButton.gif" nonempty="PlusButton.gif" />' width="13" height="13" border="0" alt="Show/hide section" id="DeployedServer.1806468856.Image" > </a>

See Also:
Serialized Form
 

Field Summary
 
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
 
Constructor Summary
CookieDisplayValueTag()
           
 
Method Summary
 int doEndTag()
           
 int doStartTag()
           
 java.lang.String getEmpty()
           
 java.lang.String getName()
           
 java.lang.String getNonempty()
           
 void setEmpty(java.lang.String empty)
           
 void setName(java.lang.String name)
           
 void setNonempty(java.lang.String nonempty)
           
 
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
 

Constructor Detail

CookieDisplayValueTag

public CookieDisplayValueTag()
Method Detail

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)