![]() |
Business Internet Services |
|
The DbStmtX node executes an SqlStmt using a database Connection and stores the result as an XmlRecordSet object. Here is and example that uses an SqlStmt to provide the query:
The action attribute specifies what action to take. Currently suppported: query - store results of a query back in the request as an XmlRecordSet getFirstRow - store first record returned by a query as XmlRecordSet The dbcon attribute specifies the name of a DbPool to get a connection from. DbPools are managed by the DbManager which is stored in the ServletContext. @see com.plands.dbutil.DbManager. The dbcon attribute can also specify that the DbStmtX should obtain the connection from a parent DbStmtX tag rather than getting the connection itself. If the value of the dbcon attibute is 'DbStmtX' the DbStmtX will attempt to get a connection from a DbStmtX tag that encloses it. @author Mark Ashworth @version 0.1, 2001-09-05 Return to Index Note: We have tried to test all of the code examples but they may contain errors. Any questions, comments, suggestions, or problems should be sent to info@plands.com. |
|
© 2005 Planetary
Data Systems.
All rights reserved. |