morgand 01/02/08 17:08:15
Modified: jdbc/examples/web jdbc.jsp
Log:
added tests for getNumber tag and colName attribute
Revision Changes Path
1.4 +17 -0 jakarta-taglibs/jdbc/examples/web/jdbc.jsp
Index: jdbc.jsp
===================================================================
RCS file: /home/cvs/jakarta-taglibs/jdbc/examples/web/jdbc.jsp,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -r1.3 -r1.4
--- jdbc.jsp 2001/02/01 23:29:46 1.3
+++ jdbc.jsp 2001/02/09 01:08:15 1.4
@@ -116,6 +116,23 @@
</sql:preparedStatement>
</table>
+<p><b>For fun, pretend that the ids are British money</b></p>
+
+<table>
+<sql:preparedStatement id="stmt7" conn="conn1">
+ <sql:query>
+ select id from test_books
+ order by 1
+ </sql:query>
+ <sql:resultSet id="rset5">
+ <tr>
+ <td><sql:getNumber colName="id" format="CURRENCY" locale="en_GB"/></td>
+ </tr>
+ </sql:resultSet>
+</sql:preparedStatement>
+</table>
+
+
<P><B>Closing the database connection</B></P>
<sql:closeConnection conn="conn1"/>