Name

Data Source

Synopsis

The data-source configuration setting can be set as a String in this format, in which optional parts are embedded in brackets:

url [, [driver] [, [user] [, [password]]]

This type of value creates a simple DataSource without any pooling capabilities and is intended only for prototype and low-end applications, as described in Chapter 11. It can also be set to a JNDI path for a DataSource made available by the container, or to a DataSource created by custom code, such as a servlet or listener. These options are described in detail in Chapter 23.

Details

Variable name:

javax.servlet.jsp.jstl.sql.dataSource

Java constant:

Config.SQL_DATA_SOURCE

Java type:

String or javax.sql.DataSource

Set by:

<sql:setDataSource>, context parameter, or custom code

Used by:

<sql:query>, <sql:update>, and <sql:transaction>

Get JavaServer Pages, Second Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.