org.apache.struts.taglib.bean

Class CookieTag

public class CookieTag extends TagSupport

Define a scripting variable based on the value(s) of the specified cookie received with this request.

Version: $Rev: 54929 $ $Date: 2004-10-16 17:38:42 +0100 (Sat, 16 Oct 2004) $

Field Summary
protected Stringid
The name of the scripting variable that will be exposed as a page scope attribute.
protected static MessageResourcesmessages
The message resources for this package.
protected Stringmultiple
Return an array of Cookies if multiple is non-null.
protected Stringname
The name of the cookie whose value is to be exposed.
protected Stringvalue
The default value to return if no cookie of the specified name is found.
Method Summary
intdoStartTag()
Retrieve the required property and expose it as a scripting variable.
StringgetId()
StringgetMultiple()
StringgetName()
StringgetValue()
voidrelease()
Release all allocated resources.
voidsetId(String id)
voidsetMultiple(String multiple)
voidsetName(String name)
voidsetValue(String value)

Field Detail

id

protected 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 String multiple
Return an array of Cookies if multiple is non-null.

name

protected String name
The name of the cookie whose value is to be exposed.

value

protected String value
The default value to return if no cookie of the specified name is found.

Method Detail

doStartTag

public int doStartTag()
Retrieve the required property and expose it as a scripting variable.

Throws: JspException if a JSP exception has occurred

getId

public String getId()

getMultiple

public String getMultiple()

getName

public String getName()

getValue

public String getValue()

release

public void release()
Release all allocated resources.

setId

public void setId(String id)

setMultiple

public void setMultiple(String multiple)

setName

public void setName(String name)

setValue

public void setValue(String value)
Copyright B) 2000-2009 - The Apache Software Foundation