[TestOptimal] db Tag

TestOptimal   Wiki Home   Support  

Db tag is a command tag. It defines a jdbc data source to be used by sql tag.

The syntax is:

  <db connectionstring="jdbc connection string" driverclass="jdbc driver class name" id="myDB" user="xxx" password="yyy" />

For mysql database, use "jdbc:mysql://localhost/test" for connectionstring attribute and "com.mysql.jdbc.Driver" for driverclass attribute.

To access csv file or excel file, you can use JDBC-ODBC bridge driver.

Specify a unique id in db attribute.


Page locked (last edited February 15, 2010) [info] [diff])
FindPage by browsing or searching
5 best incoming links: mScriptTags (11), RecentChanges (1)
5 best outgoing links: sqlTag (13), Access CSV File (8), AccessExcelFile (6)
5 most popular nearby: RecentChanges (859), mScriptTags (525), Access CSV File (277), sqlTag (242), AccessExcelFile (145)