com.ora.jsp.tags.generic
Class GetCookieValueTag

java.lang.Object
  |
  +--javax.servlet.jsp.tagext.TagSupport
        |
        +--com.ora.jsp.tags.generic.GetCookieValueTag
All Implemented Interfaces:
java.io.Serializable, javax.servlet.jsp.tagext.Tag

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

This class is a custom action for writing the value of a cookie to the response.

Version:
1.0
Author:
Hans Bergsten, Gefion software
See Also:
Serialized Form

Field Summary
private  java.lang.String name
           
 
Fields inherited from class javax.servlet.jsp.tagext.TagSupport
id, pageContext, parent, values
 
Fields inherited from interface javax.servlet.jsp.tagext.Tag
EVAL_BODY_INCLUDE, EVAL_PAGE, SKIP_BODY, SKIP_PAGE
 
Constructor Summary
GetCookieValueTag()
           
 
Method Summary
 int doEndTag()
          Writes the specified cookie value to the output stream, or an empty string if not found.
 void release()
          Releases all instance variables.
 void setName(java.lang.String name)
          Sets the cookie name attribute.
 
Methods inherited from class javax.servlet.jsp.tagext.TagSupport
doStartTag, findAncestorWithClass, getId, getParent, getValue, getValues, removeValue, setId, setPageContext, setParent, setValue
 
Methods inherited from class java.lang.Object
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, registerNatives, toString, wait, wait, wait
 

Field Detail

name

private java.lang.String name
Constructor Detail

GetCookieValueTag

public GetCookieValueTag()
Method Detail

setName

public void setName(java.lang.String name)
Sets the cookie name attribute.
Parameters:
name - the name of the cookie

doEndTag

public int doEndTag()
             throws javax.servlet.jsp.JspException
Writes the specified cookie value to the output stream, or an empty string if not found.
Overrides:
doEndTag in class javax.servlet.jsp.tagext.TagSupport

release

public void release()
Releases all instance variables.
Overrides:
release in class javax.servlet.jsp.tagext.TagSupport