This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Windows - Run HSQLDB | |
NOTE: Assumes your hsqldb is installed at c:\ on your PC | |
java -cp c:\hsqldb-2.3.2\hsqldb\lib\hsqldb.jar org.hsqldb.server.Server |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<table class="table table-striped"> | |
<c:forEach items="${theQuotes }" var="aQuote"> | |
<tr> | |
<td> | |
<blockquote class="blockquote"> | |
<p>${aQuote.quote }</p> | |
<footer> | |
<c:out value="${aQuote.author }"/> | |
</footer> | |
</blockquote> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<sql:query var="results" | |
sql="select quotation, author from quote" | |
dataSource="jdbc/quoteDB"> | |
</sql:query> | |
<c:forEach items="${results.rows }" var="row"> | |
<p>${row.quotation } -- ${row.author }</p> | |
</c:forEach> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<Resource name="jdbc/quoteDB" auth="Container" type="javax.sql.DataSource" | |
maxActive="50" maxIdle="30" maxWait="10000" | |
username="SA" password="" | |
driverClassName="org.hsqldb.jdbc.JDBCDriver" | |
url="jdbc:hsqldb:hsql://localhost:9001/"/> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %> | |
<%@ taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt" %> | |
<%@ taglib uri="http://java.sun.com/jsp/jstl/functions" prefix="fn" %> | |
<%@ taglib uri="http://java.sun.com/jsp/jstl/sql" prefix="sql" %> | |
NewerOlder