org.apache.taglibs.datetime
Class TimeZoneTag
java.lang.Object
javax.servlet.jsp.tagext.TagSupport
javax.servlet.jsp.tagext.BodyTagSupport
org.apache.taglibs.datetime.TimeZoneTag
- All Implemented Interfaces:
- java.io.Serializable, javax.servlet.jsp.tagext.BodyTag, javax.servlet.jsp.tagext.IterationTag, javax.servlet.jsp.tagext.Tag
public class TimeZoneTag
- extends javax.servlet.jsp.tagext.BodyTagSupport
JSP Tag timeZone, used to set the client timeZone for
the SESSION as a script variable.
The TimeZone ID String is obtained from the body of the tag.
If there is no TimeZone ID String, the server default timeZone is used.
JSP Tag Lib Descriptor
<name>timeZone</name>
<tagclass>org.apache.taglibs.datetime.TimeZoneTag</tagclass>
<bodycontent>JSP</bodycontent>
<info>Creates a SESSION script variable for clients time zone.</info>
<attribute>
<name>id</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()
Method called at end of timeZone tag body. |
int |
doEndTag()
Method called at end of Tag |
int |
doStartTag()
Method called at start of tag, always returns EVAL_BODY_TAG |
Methods inherited from class javax.servlet.jsp.tagext.BodyTagSupport |
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 |
TimeZoneTag
public TimeZoneTag()
doStartTag
public final int doStartTag()
throws javax.servlet.jsp.JspException
- Method called at start of tag, always returns EVAL_BODY_TAG
- Specified by:
doStartTag
in interface javax.servlet.jsp.tagext.Tag
- Overrides:
doStartTag
in class javax.servlet.jsp.tagext.BodyTagSupport
- Returns:
- EVAL_BODY_TAG
- Throws:
javax.servlet.jsp.JspException
doAfterBody
public final int doAfterBody()
throws javax.servlet.jsp.JspException
- Method called at end of timeZone tag body.
- Specified by:
doAfterBody
in interface javax.servlet.jsp.tagext.IterationTag
- Overrides:
doAfterBody
in class javax.servlet.jsp.tagext.BodyTagSupport
- Returns:
- SKIP_BODY
- Throws:
javax.servlet.jsp.JspException
doEndTag
public final int doEndTag()
throws javax.servlet.jsp.JspException
- Method called at end of Tag
- Specified by:
doEndTag
in interface javax.servlet.jsp.tagext.Tag
- Overrides:
doEndTag
in class javax.servlet.jsp.tagext.BodyTagSupport
- Returns:
- EVAL_PAGE
- Throws:
javax.servlet.jsp.JspException
Copyright ? 2000-2004 The Apache Software Foundation. All Rights Reserved.