dbforms
Tag getConnection


Allows other tags (or scriptlets) to obtain a database connection object using the same settings found in dbForms-config.xml


Tag Information
Tag Class org.dbforms.taglib.DbGetConnectionTag
TagExtraInfo ClassNone
Body ContentJSP
Display NameNone

Attributes
NameRequiredRequest-timeTypeDescription
idtruetruejava.lang.String Attribute in page that will be used to reference the connection object Allows other tags (and/or java scriptlets) to obtain a connection via the same settings as defined in dbForms Example: <db:getConnection id="myConnection"> <!-- Open connection --> <sql: statement id="stmt" conn="myConnection"> <sql:query>Select * from Table</sql:query> <sql:resultSet id="rs"> Value: <sql:getColumn position="1"/> </sql:resultSet> </sql:statement> </db:getConnection> <!-- close connection -->
dbConnectionNamefalsetruejava.lang.String indicate which dbconnection object to user.

Variables
No Variables Defined.


Output Generated by Tag Library Documentation Generator. Java, JSP, and JavaServer Pages are trademarks or registered trademarks of Sun Microsystems, Inc. in the US and other countries. Copyright 2002-4 Sun Microsystems, Inc. 4150 Network Circle Santa Clara, CA 95054, U.S.A. All Rights Reserved.