org.apache.struts.taglib.bean
Class HeaderTag
TagSupport
org.apache.struts.taglib.bean.HeaderTag
public class HeaderTag
extends TagSupport
Define a scripting variable based on the value(s) of the specified
header received with this request.
$Rev: 54929 $ $Date: 2004-10-16 17:38:42 +0100 (Sat, 16 Oct 2004) $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 header values if
multiple is non-null.
|
protected String | name - The name of the header whose value is to be exposed.
|
protected String | value - The default value to return if no header of the specified name is found.
|
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 header values if multiple
is non-null.
name
protected String name
The name of the header whose value is to be exposed.
value
protected String value
The default value to return if no header of the specified name is found.
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()
handleMultipleHeaders
protected void handleMultipleHeaders()
throws JspException
Expose an array of header values.
handleSingleHeader
protected void handleSingleHeader()
throws JspException
Expose a single header value.
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