org.apache.taglibs.dbtags.resultset
Class GetColumnTag
java.lang.Object
javax.servlet.jsp.tagext.TagSupport
org.apache.taglibs.dbtags.resultset.BaseGetterTag
org.apache.taglibs.dbtags.resultset.GetColumnTag
- All Implemented Interfaces:
- java.io.Serializable, javax.servlet.jsp.tagext.IterationTag, 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
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 |
GetColumnTag
public GetColumnTag()
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.