Intial import.
This commit is contained in:
parent
db614924ac
commit
7e5f191232
28 changed files with 3411 additions and 0 deletions
27
simplepool/simplepool-examples/jndi/jstl.jsp
Normal file
27
simplepool/simplepool-examples/jndi/jstl.jsp
Normal 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>
|
Loading…
Add table
Add a link
Reference in a new issue