org.apache.taglibs.response
Class AddDateHeaderTag
java.lang.Object
javax.servlet.jsp.tagext.TagSupport
javax.servlet.jsp.tagext.BodyTagSupport
org.apache.taglibs.response.AddDateHeaderTag
- All Implemented Interfaces:
- javax.servlet.jsp.tagext.BodyTag, javax.servlet.jsp.tagext.IterationTag, java.io.Serializable, javax.servlet.jsp.tagext.Tag
- public class AddDateHeaderTag
- extends javax.servlet.jsp.tagext.BodyTagSupport
JSP Tag addDateHeader, used to add a header for the HTTP Response.
The header value is set to the content of the body of the addDateHeader tag.
JSP Tag Lib Descriptor
<name>addDateHeader</name>
<tagclass>org.apache.taglibs.response.AddDateHeaderTag</tagclass>
<bodycontent>JSP</bodycontent>
<info>Add a single HTTP date header.</info>
<attribute>
<name>name</name>
<required>true</required>
<rtexprvalue>false</rtexprvalue>
</attribute>
- Author:
- Glenn Nielsen
- See Also:
- Serialized Form
Fields inherited from class javax.servlet.jsp.tagext.BodyTagSupport |
bodyContent |
Fields inherited from class javax.servlet.jsp.tagext.TagSupport |
id, pageContext |
Fields inherited from interface javax.servlet.jsp.tagext.BodyTag |
EVAL_BODY_BUFFERED, EVAL_BODY_TAG |
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 |
Method Summary |
int |
doAfterBody()
Read the body of the addDateHeader tag to obtain the header value. |
int |
doStartTag()
Method called at start of tag, just returns EVAL_BODY_TAG |
void |
setName(java.lang.String nam)
Required attribute, name of the header. |
Methods inherited from class javax.servlet.jsp.tagext.BodyTagSupport |
doEndTag, doInitBody, getBodyContent, getPreviousOut, release, setBodyContent |
Methods inherited from class javax.servlet.jsp.tagext.TagSupport |
findAncestorWithClass, getId, getParent, getValue, getValues, removeValue, setId, setPageContext, setParent, setValue |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface javax.servlet.jsp.tagext.Tag |
getParent, setPageContext, setParent |
AddDateHeaderTag
public AddDateHeaderTag()
doStartTag
public final int doStartTag()
throws javax.servlet.jsp.JspException
- Method called at start of tag, just returns EVAL_BODY_TAG
- Returns:
- EVAL_BODY_TAG
- Throws:
javax.servlet.jsp.JspException
doAfterBody
public final int doAfterBody()
throws javax.servlet.jsp.JspException
- Read the body of the addDateHeader tag to obtain the header value.
- Returns:
- SKIP_BODY
- Throws:
javax.servlet.jsp.JspException
setName
public final void setName(java.lang.String nam)
- Required attribute, name of the header.
Copyright ? 2000-2004 The Apache Software Foundation. All Rights Reserved.