Tag Documentation

[tag libraries] [tags]

The following document contains a summary of all theJellytag libraries.

Tag Libraries

[tag libraries] [tags]

LibraryDescription
jelly:sql

The SQL Tags from the JSTL

There are some examples of these tags in action here

jelly:sql

The SQL Tags from the JSTL

There are some examples of these tags in action here

Tag NameDescription
dateParam

Tag handler for <Param>in JSTL, used to setparameter values for a SQL statement.

driver

Tag handler for <Driver>in JSTL, used to createa simple DataSource for prototyping.

param

Tag handler for <Param>in JSTL, used to setparameter values for a SQL statement.

query

Tag handler for <Query>in JSTL.

resultSetThis Tag creates a result set object based on its body content via child row tags.This tag is useful for unit testing with Mock Tags to simulate the results returned by databases.
rowAdds a new row to a parent <resultSet>Tag.This tag is useful for unit testing with Mock Tags to simulate the results returned by databases.
setDataSource

Tag handler for <SetDataSource>in JSTL, used to createa simple DataSource for prototyping.

transaction

Tag handler for <Transaction>in JSTL.

update

Tag handler for <Update>in JSTL.

Tags

[tag libraries] [tags]

sql:dateParam

Tag handler for <Param>in JSTL, used to setparameter values for a SQL statement.

Attribute NameTypeDescription
escapeTextboolean
trimboolean
typejava.lang.String
valuejava.sql.Date

sql:driver

Tag handler for <Driver>in JSTL, used to createa simple DataSource for prototyping.

Attribute NameTypeDescription
driverjava.lang.String
escapeTextboolean
jdbcURLjava.lang.String
scopejava.lang.StringSets the scope of the variable to hold theresult.
trimboolean
userNamejava.lang.String
varjava.lang.String

sql:param

Tag handler for <Param>in JSTL, used to setparameter values for a SQL statement.

Attribute NameTypeDescription
escapeTextboolean
trimboolean
valuejava.lang.Object

sql:query

Tag handler for <Query>in JSTL.

Attribute NameTypeDescription
dataSourcejava.lang.ObjectSets the SQL DataSource. DataSource can bea String or a DataSource object.
escapeTextboolean
maxRowsintQuery result can be limited by specifyingthe maximum number of rows returned.
scopejava.lang.StringSets the scope of the variable to hold theresult.
sqljava.lang.StringSets the SQL statement to use for thequery. The statement may contain parameter markers(question marks, ?). If so, the parameter values mustbe set using nested value elements.
startRowintThe index of the first row returned can bespecified using startRow.
trimboolean
varjava.lang.StringSets the name of the variable to hold theresult.

sql:resultSet

This Tag creates a result set object based on its body content via child row tags.This tag is useful for unit testing with Mock Tags to simulate the results returned by databases.

Attribute NameTypeDescription
escapeTextboolean
trimboolean
varjava.lang.StringSets the variable to export the result set to.

sql:row

Adds a new row to a parent <resultSet>Tag.This tag is useful for unit testing with Mock Tags to simulate the results returned by databases.

Attribute NameTypeDescription
escapeTextboolean
trimboolean

sql:setDataSource

Tag handler for <SetDataSource>in JSTL, used to createa simple DataSource for prototyping.

Attribute NameTypeDescription
dataSourcejava.lang.Object
driverjava.lang.String
escapeTextboolean
passwordjava.lang.String
scopejava.lang.StringSets the scope of the variable to hold theresult.
trimboolean
urljava.lang.String
userjava.lang.String
varjava.lang.String

sql:transaction

Tag handler for <Transaction>in JSTL.

Attribute NameTypeDescription
dataSourcejava.lang.ObjectSets the SQL DataSource. DataSource can bea String or a DataSource object.
escapeTextboolean
isolationjava.lang.StringSets the transaction isolation level.
trimboolean

sql:update

Tag handler for <Update>in JSTL.

Attribute NameTypeDescription
dataSourcejava.lang.ObjectSets the SQL DataSource. DataSource can bea String or a DataSource object.
escapeTextboolean
scopejava.lang.StringSets the scope of the variable to hold theresult.
sqljava.lang.StringSets the SQL statement to use for thequery. The statement may contain parameter markers(question marks, ?). If so, the parameter values mustbe set using nested value elements.
trimboolean
varjava.lang.StringSets the name of the variable to hold theresult.