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 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 String
multiple
Return an array of Cookies if multiple is non-null.
protected String
name
The name of the cookie whose value is to be exposed.
protected 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.
String
getId()
String
getMultiple()
String
getName()
String
getValue()
void
release()
Release all allocated resources.
void
setId(String id)
void
setMultiple(String multiple)
void
setName(String name)
void
setValue(String value)

Field Details

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 Details

doStartTag

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

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-2007 - The Apache Software Foundation