Encapsulates a database connection for JavaScript.
var conn = new Database("jdbc/test");
var rs = conn.query("select NAME from HOUSES");
while (rs.next())
out.writeln(rs.get(1) + "<br/>");
conn.close();
Constructor Summary
public
Database(String name) Creates a new database looking up the DataSource in JNDI.