org.apache.struts.taglib.bean
public class HeaderTag extends javax.servlet.jsp.tagext.TagSupport
Modifier and Type | Field and Description |
---|---|
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 header values if
multiple is non-null. |
protected java.lang.String |
name
The name of the header whose value is to be exposed.
|
protected java.lang.String |
value
The default value to return if no header of the specified name is found.
|
Constructor and Description |
---|
HeaderTag() |
Modifier and Type | Method and Description |
---|---|
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() |
protected void |
handleMultipleHeaders()
Expose an array of header values.
|
protected void |
handleSingleHeader()
Expose a single header value.
|
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) |
protected java.lang.String id
protected static MessageResources messages
protected java.lang.String multiple
multiple
is non-null.protected java.lang.String name
protected java.lang.String value
public java.lang.String getId()
getId
in class javax.servlet.jsp.tagext.TagSupport
public void setId(java.lang.String id)
setId
in class javax.servlet.jsp.tagext.TagSupport
public java.lang.String getMultiple()
public void setMultiple(java.lang.String multiple)
public java.lang.String getName()
public void setName(java.lang.String name)
public java.lang.String getValue()
public void setValue(java.lang.String value)
public int doStartTag() throws javax.servlet.jsp.JspException
doStartTag
in interface javax.servlet.jsp.tagext.Tag
doStartTag
in class javax.servlet.jsp.tagext.TagSupport
javax.servlet.jsp.JspException
- if a JSP exception has occurredprotected void handleMultipleHeaders() throws javax.servlet.jsp.JspException
javax.servlet.jsp.JspException
protected void handleSingleHeader() throws javax.servlet.jsp.JspException
javax.servlet.jsp.JspException
public void release()
release
in interface javax.servlet.jsp.tagext.Tag
release
in class javax.servlet.jsp.tagext.TagSupport
Copyright ? 2000-2014 - The Apache Software Foundation