org.apache.taglibs.dbtags.resultset
Class GetTimestampTag
java.lang.Object
javax.servlet.jsp.tagext.TagSupport
org.apache.taglibs.dbtags.resultset.BaseGetterTag
org.apache.taglibs.dbtags.resultset.BaseDateTimeGetterTag
org.apache.taglibs.dbtags.resultset.GetTimestampTag
- All Implemented Interfaces:
- javax.servlet.jsp.tagext.IterationTag, java.io.Serializable, javax.servlet.jsp.tagext.Tag
- public class GetTimestampTag
- extends BaseDateTimeGetterTag
Translates a java.sql.Timestamp to a readable String.
JSP Tag Lib Descriptor
<tag>
<name>getTimestamp</name>
<tagclass>org.apache.taglibs.dbtags.resultset.GetTimestampTag</tagclass>
<teiclass>org.apache.taglibs.dbtags.resultset.BaseGetterTEI</teiclass>
<bodycontent>empty</bodycontent>
<info>
Similar to getColumn, but provides more precise control over
java.sql.Timestamp formatting.
The required "format" attribute can be either a pattern as
accepted by SimpleDateFormat or a style: "FULL",
"LONG", "MEDIUM" or "SHORT". It can also can be a comma separated
list of two styles, one for date and one for time.
The "locale" attribute can have one to three
components as accepted by the Locale constructor: language,
country and variant. They are separated by "_".
</info>
<attribute>
<name>position</name>
<required>false</required>
<rtexprvalue>false</rtexprvalue>
</attribute>
<attribute>
<name>colName</name>
<required>false</required>
<rtexprvalue>false</rtexprvalue>
</attribute>
<attribute>
<name>to</name>
<required>false</required>
<rtexprvalue>false</rtexprvalue>
</attribute>
<attribute>
<name>scope</name>
<required>false</required>
<rtexprvalue>false</rtexprvalue>
</attribute>
<attribute>
<name>locale</name>
<required>false</required>
<rtexprvalue>true</rtexprvalue>
</attribute>
<attribute>
<name>format</name>
<required>false</required>
<rtexprvalue>true</rtexprvalue>
</attribute>
</tag>
- Author:
- Morgan Delagrange, Marius Scurtescu
- See Also:
- Serialized Form
Fields inherited from class javax.servlet.jsp.tagext.TagSupport |
id, 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 |
Methods inherited from class org.apache.taglibs.dbtags.resultset.BaseGetterTag |
doEndTag, getLocale, getMetaData, getPosition, getResultSet, getResultSetTag, release, setAttribute, setColName, setLocale, setPosition, setPosition, setScope, setTo |
Methods inherited from class javax.servlet.jsp.tagext.TagSupport |
doAfterBody, 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 |
GetTimestampTag
public GetTimestampTag()
doStartTag
public int doStartTag()
throws javax.servlet.jsp.JspTagException
- Throws:
javax.servlet.jsp.JspTagException
Copyright ? 2000-2004 The Apache Software Foundation. All Rights Reserved.