org.apache.taglibs.dbtags.resultset
Class GetColumnTag

java.lang.Object
  extended byjavax.servlet.jsp.tagext.TagSupport
      extended byorg.apache.taglibs.dbtags.resultset.BaseGetterTag
          extended byorg.apache.taglibs.dbtags.resultset.GetColumnTag
All Implemented Interfaces:
javax.servlet.jsp.tagext.IterationTag, java.io.Serializable, javax.servlet.jsp.tagext.Tag

public class GetColumnTag
extends BaseGetterTag

Get the value of a database column as a String.

JSP Tag Lib Descriptor

 <name>getString</name>
 <tagclass>org.apache.taglibs.dbtags.resultset.GetStringTag</tagclass>
 <bodycontent>empty</bodycontent>
 <info>Gets the value, as a String, of a coulmn in the enclosing
 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).  Dates,
 times, timestamps and numbers are output according to the JVM's defaults.</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>
 

Author:
Morgan Delagrange
See Also:
Serialized Form

Field Summary
 
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
GetColumnTag()
           
 
Method Summary
 int doStartTag()
           
 
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

GetColumnTag

public GetColumnTag()
Method Detail

doStartTag

public int doStartTag()
               throws javax.servlet.jsp.JspTagException
Throws:
javax.servlet.jsp.JspTagException


Copyright ? 2000-2004 The Apache Software Foundation. All Rights Reserved.