org.apache.taglibs.dbtags.resultset
Class GetTimeTag

java.lang.Object
  extended by javax.servlet.jsp.tagext.TagSupport
      extended by org.apache.taglibs.dbtags.resultset.BaseGetterTag
          extended by org.apache.taglibs.dbtags.resultset.BaseDateTimeGetterTag
              extended by org.apache.taglibs.dbtags.resultset.GetTimeTag
All Implemented Interfaces:
java.io.Serializable, javax.servlet.jsp.tagext.IterationTag, javax.servlet.jsp.tagext.Tag

public class GetTimeTag
extends BaseDateTimeGetterTag

Translates a java.sql.Time to a readable String.

JSP Tag Lib Descriptor

   <tag>
     <name>getTime</name>
     <tagclass>org.apache.taglibs.dbtags.resultset.GetTimeTag</tagclass>
     <teiclass>org.apache.taglibs.dbtags.resultset.BaseGetterTEI</teiclass>
     <bodycontent>empty</bodycontent>
     <info>
     Similar to getColumn, but provides more precise control over
     java.sql.Time 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

Field Summary
 
Fields inherited from class org.apache.taglibs.dbtags.resultset.BaseDateTimeGetterTag
_format, _mapDateTimeStyle
 
Fields inherited from class org.apache.taglibs.dbtags.resultset.BaseGetterTag
_attributeName, _locale, _metaData, _scope, _tag
 
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
 
Constructor Summary
GetTimeTag()
           
 
Method Summary
 int doStartTag()
           
 
Methods inherited from class org.apache.taglibs.dbtags.resultset.BaseDateTimeGetterTag
getDateAsString, setFormat
 
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
 

Constructor Detail

GetTimeTag

public GetTimeTag()
Method Detail

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.