dbforms
Tag setDataSource


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


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

Attributes
NameRequiredRequest-timeTypeDescription
dataSourcetruetruejava.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: (using Jakarta dbTags) <db:setDataSource dataSource="myDataSource" /> <sql:query var="qry" dataSource="${myDataSource}">Select * from Table</sql:query> <c:forEach var="row" items="${qry.rows}" > Value: <c:out value="{row.field}" /> </c:forEach>
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.