morgand     01/02/08 17:07:31

  Modified:    jdbc/conf jdbc.tld
  Log:
  added new tags getDate, getTime, getTimestamp and getNumber,
  and added colName attribute to all getter tags
  
  Revision  Changes    Path
  1.6       +217 -3    jakarta-taglibs/jdbc/conf/jdbc.tld
  
  Index: jdbc.tld
  ===================================================================
  RCS file: /home/cvs/jakarta-taglibs/jdbc/conf/jdbc.tld,v
  retrieving revision 1.5
  retrieving revision 1.6
  diff -u -r1.5 -r1.6
  --- jdbc.tld  2001/02/05 22:18:45     1.5
  +++ jdbc.tld  2001/02/09 01:07:30     1.6
  @@ -264,18 +264,172 @@
     <tag>
       <name>getColumn</name>
       <tagclass>org.apache.taglibs.jdbc.resultset.GetColumnTag</tagclass>
  +    <teiclass>org.apache.taglibs.jdbc.resultset.BaseGetterTEI</teiclass>
       <bodycontent>empty</bodycontent>
       <info>Gets the value, as a String, of a coulmn in the enclosing
  -resultset.  The column number is set via the "position" attribute.
  +resultset.  Either set the column number via the "position" attribute,
  +or set the column name with the "colName" attribute.
   You can optionally set the value, as a String, to a serlvet attribute 
   instead of the tag body with the "to" attribute.  The scope of the servlet
  -attribute is specified by the "scope" XML attribute (default = page).</info>
  +attribute is specified by the "scope" XML attribute (default = page).  Dates,
  +times, timestamps and numbers are output according to the JVM's defaults.</info>
       <attribute>
         <name>position</name>
  -      <required>true</required>
  +      <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>
  +  </tag>
  +
  +  <tag>
  +    <name>getNumber</name>
  +    <tagclass>org.apache.taglibs.jdbc.resultset.GetNumberTag</tagclass>
  +    <teiclass>org.apache.taglibs.jdbc.resultset.BaseGetterTEI</teiclass>
  +    <bodycontent>empty</bodycontent>
  +    <info>
  +    Similar to getColumn, but provides more precise control over
  +    number formatting.  
  +    
  +    The "format" attribute can be either a pattern as
  +    accepted by the DecimalFormat constructor or a style: "CURRENCY", 
  +    "PERCENT" or "NUMBER".  
  +    
  +    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>
  +  
  +  <tag>
  +    <name>getTime</name>
  +    <tagclass>org.apache.taglibs.jdbc.resultset.GetTimeTag</tagclass>
  +    <teiclass>org.apache.taglibs.jdbc.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>
  +
  +  <tag>
  +    <name>getDate</name>
  +    <tagclass>org.apache.taglibs.jdbc.resultset.GetDateTag</tagclass>
  +    <teiclass>org.apache.taglibs.jdbc.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>
  @@ -285,7 +439,67 @@
         <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>
   
  +  <tag>
  +    <name>getTimestamp</name>
  +    <tagclass>org.apache.taglibs.jdbc.resultset.GetTimestampTag</tagclass>
  +    <teiclass>org.apache.taglibs.jdbc.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>true</required>
  +      <rtexprvalue>true</rtexprvalue>
  +    </attribute>
  +  </tag>
  +  
   </taglib>
   
  
  
  

Reply via email to