Examples initial import.

This commit is contained in:
Erik C. Thauvin 2004-03-20 13:36:08 +00:00
parent ed19117078
commit 6ed79c0387
18 changed files with 1653 additions and 8 deletions

View file

@ -0,0 +1,27 @@
<%@ taglib prefix="c" uri="http://java.sun.com/jstl/core" %>
<%@ taglib prefix="sql" uri="http://java.sun.com/jstl/sql" %>
<html>
<head>
<title>SimplePool JNDI/JSTL Example</title>
</head>
<body>
<%-- Execute the query using our JNDI DataSource --%>
<sql:query var="rs" dataSource="jdbc/JNDIPoolDS">
SHOW TABLES
</sql:query>
<h3>Tables</h3>
<ul>
<%--
Loop through the result set and
display the current column value
--%>
<c:forEach var="row" items="${rs.rowsByIndex}">
<li><c:out value="${row[0]}"/></li>
</c:forEach>
<ul>
</body>
</html>