|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object javax.servlet.jsp.tagext.TagSupport org.apache.struts.taglib.bean.HeaderTag
public class HeaderTag
Define a scripting variable based on the value(s) of the specified header received with this request.
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 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. |
Fields inherited from class javax.servlet.jsp.tagext.TagSupport |
---|
pageContext |
Fields inherited from interface javax.servlet.jsp.tagext.IterationTag |
---|
EVAL_BODY_AGAIN |
Fields inherited from interface javax.servlet.jsp.tagext.Tag |
---|
EVAL_BODY_INCLUDE, EVAL_PAGE, SKIP_BODY, SKIP_PAGE |
Constructor Summary | |
---|---|
HeaderTag()
|
Method Summary | |
---|---|
int |
doStartTag()
Retrieve the required property and expose it as a scripting variable. |
String |
getId()
|
String |
getMultiple()
|
String |
getName()
|
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(String id)
|
void |
setMultiple(String multiple)
|
void |
setName(String name)
|
void |
setValue(String value)
|
Methods inherited from class javax.servlet.jsp.tagext.TagSupport |
---|
doAfterBody, doEndTag, findAncestorWithClass, getParent, getValue, getValues, removeValue, setPageContext, setParent, setValue |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected static MessageResources messages
protected String id
protected String multiple
multiple
is non-null.
protected String name
protected String value
Constructor Detail |
---|
public HeaderTag()
Method Detail |
---|
public String getId()
getId
in class TagSupport
public void setId(String id)
setId
in class TagSupport
public String getMultiple()
public void setMultiple(String multiple)
public String getName()
public void setName(String name)
public String getValue()
public void setValue(String value)
public int doStartTag() throws JspException
doStartTag
in interface Tag
doStartTag
in class TagSupport
JspException
- if a JSP exception has occurredprotected void handleMultipleHeaders() throws JspException
JspException
protected void handleSingleHeader() throws JspException
JspException
public void release()
release
in interface Tag
release
in class TagSupport
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |