org.apache.struts.taglib.bean
Class CookieTag
org.apache.struts.taglib.bean.CookieTag
- public class CookieTag
Define a scripting variable based on the value(s) of the specified
cookie received with this request.
- Version:
- $Revision: 1.9 $ $Date: 2001/04/23 22:52:20 $
- Author:
- Craig R. McClanahan
Field Summary |
protected java.lang.String |
id
The name of the scripting variable that will be exposed as a page
scope attribute. |
protected static MessageResources |
messages
The message resources for this package. |
protected java.lang.String |
multiple
Return an array of Cookies if multiple is non-null. |
protected java.lang.String |
name
The name of the cookie whose value is to be exposed. |
protected java.lang.String |
value
The default value to return if no cookie of the specified name is found. |
Method Summary |
int |
doStartTag()
Retrieve the required property and expose it as a scripting variable. |
java.lang.String |
getId()
|
java.lang.String |
getMultiple()
|
java.lang.String |
getName()
|
java.lang.String |
getValue()
|
void |
release()
Release all allocated resources. |
void |
setId(java.lang.String id)
|
void |
setMultiple(java.lang.String multiple)
|
void |
setName(java.lang.String name)
|
void |
setValue(java.lang.String value)
|
id
protected java.lang.String id
- The name of the scripting variable that will be exposed as a page
scope attribute.
messages
protected static MessageResources messages
- The message resources for this package.
multiple
protected java.lang.String multiple
- Return an array of Cookies if
multiple
is non-null.
name
protected java.lang.String name
- The name of the cookie whose value is to be exposed.
value
protected java.lang.String value
- The default value to return if no cookie of the specified name is found.
CookieTag
public CookieTag()
getId
public java.lang.String getId()
setId
public void setId(java.lang.String id)
getMultiple
public java.lang.String getMultiple()
setMultiple
public void setMultiple(java.lang.String multiple)
getName
public java.lang.String getName()
setName
public void setName(java.lang.String name)
getValue
public java.lang.String getValue()
setValue
public void setValue(java.lang.String value)
doStartTag
public int doStartTag()
throws javax.servlet.jsp.JspException
- Retrieve the required property and expose it as a scripting variable.
- Throws:
JspException
- if a JSP exception has occurred
release
public void release()
- Release all allocated resources.
Copyright © 2000-2002 - Apache Software Foundation