home Links Articles Books Past Meetings Photos SiteMap
The MDCFUG is sponsored by TeraTech. Visit us at www.TeraTech.com

Please send
comments/questions to

michael@
teratech.com

 

JSTL – SQL example

    <%@ taglib prefix="sql" uri="http://java.sun.com/jstl/sql" %>

    <%@ taglib prefix="c" uri="http://java.sun.com/jstl/core" %>

    <sql:query var="films"

    dataSource="jdbc:odbc:ows,sun.jdbc.odbc.JdbcOdbcDriver">

    SELECT * FROM Films

    </sql:query>

    <html>

    <head><title>SQL Query Example</title></head>

    <body>

    <ul>

    <c:forEach var="film" items="${films}">

    <li><c:out value="${film.MovieTitle}"/>

    </c:forEach>

    </ul>

    </body></html>

Previous slide Next slide Back to first slide View graphic version


Home | Links | Articles | Past Meetings | Meeting Photos | Site Map
About MDCFUG | Join | Mailing List |Forums | Directions |Suggestions | Quotes | Newbie Tips
TOP

Copyright © 1997-2024, Maryland Cold Fusion User Group. All rights reserved.
< >