<sas:JDBCConnection>

The JDBCConnection Custom Tag allows the user to include JDBC connectivity within a JSP page. The JDBCConnection Tag may be used in all four scopes, PAGE, REQUEST, SESSION, and APPLICATION. If the JDBCConnection Tag is used with a scope of PAGE, all code must be contained within the body of the JDBCConnection Tag. If the scope is of the JDBCConnection Tag is PAGE and a body is present, the connection will be stopped at the end of the JDBCConnection Tag's body. If the id or ref attributes are null the connection will be stopped at the end of the JDBCConnection Tag's body.

Syntax

<sas:JDBCConnection databaseURL="java.lang.String" driverName="java.lang.String"
   [autoCommit="true|false"]
   [catalog="java.lang.String"]
   [connectionInfo="java.lang.String"]
   [id="value"]
   [instantiate="true|false"]
   [loginCommand="java.lang.String"]
   [password="java.lang.String"]
   [readOnly="true|false"]
   [ref="java.lang.String"]
   [scope="page|request|session|application"]
   [transactionIsolation="int"]
   [typeMap="java.lang.String"]
   [username="java.lang.String"]>
      [<sas:SetProperty ...>
         The value to set on the parent tag
      </sas:SetProperty>]
      [Additional <sas:SetProperty> tags...]
</sas:JDBCConnection>

Attributes

autoCommit
catalogthe name of the catalog to select
connectionInfothe String representing the Properties object used in obtaining a Connection
databaseURLthe String representing the database url used to obtain a java.sql.Connection
driverNamethe name of the JDBC Driver class
idCase-sensitive name used to identify the object instance.
instantiateFlag that, if true, indicates that a new instance of the underlying class should be loaded if one cannot be found in PageContext. Must be used with an id attribute.
loginCommandthe String representing the login command
passwordpassword
readOnlyindicates if the connection should be in read-only mode.
refThe variable String value that represents an object created earlier in the same scope.
scopeThe scope (or page context) within which the reference is available.
transactionIsolationthe desired transaction isolataion level for the Jdbc Connection
typeMapthe String representing the type map used for custom mapping of SQL structured types and distinct types
usernameusername

More Information

To view the documentation for the related InformationBean, see com.sas.storage.jdbc.JDBCConnection.

If you need to subclass the tag handler class for the sas:JDBCConnection tag, extend com.sas.taglib.storage.jdbc.JDBCConnectionTag.