org.apache.taglibs.dbtags.resultset
Class GetDateTag
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.GetDateTag
- All Implemented Interfaces:
- java.io.Serializable, javax.servlet.jsp.tagext.IterationTag, javax.servlet.jsp.tagext.Tag
public class GetDateTag
- extends BaseDateTimeGetterTag
Translates a java.sql.Date to a readable String.
JSP Tag Lib Descriptor
<tag>
<name>getDate</name>
<tagclass>org.apache.taglibs.dbtags.resultset.GetDateTag</tagclass>
<teiclass>org.apache.taglibs.dbtags.resultset.BaseGetterTEI</teiclass>
<bodycontent>empty</bodycontent>
<info>
Similar to getColumn, but provides more precise control over
java.sql.Date formatting.
The "format" attribute can be either a pattern as
accepted by SimpleDateFormat or a style: "FULL",
"LONG", "MEDIUM" or "SHORT".
The "locale" attribute can have one to three
components as accepted by the Locale constructor: language,
country and variant. They are separated by "_".
If neither the format nor locale attribute is set, output should be
identical to getColumn.
</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 |
GetDateTag
public GetDateTag()
doStartTag
public int doStartTag()
throws javax.servlet.jsp.JspTagException
- Specified by:
doStartTag
in interface javax.servlet.jsp.tagext.Tag
- Overrides:
doStartTag
in class javax.servlet.jsp.tagext.TagSupport
- Throws:
javax.servlet.jsp.JspTagException
Copyright ? 2000-2004 The Apache Software Foundation. All Rights Reserved.