java/SpringDemo1/SpringDemo1-war/web/index.jsp
author František Kučera <franta-hg@frantovo.cz>
Fri Feb 12 00:24:43 2010 +0100 (2010-02-12)
changeset 7 a8c280a7c0e2
parent 5 7cf0cbef2936
permissions -rw-r--r--
Přidán odkaz na zdrojáky.
     1 <?xml version="1.0" encoding="UTF-8"?>
     2 <jsp:root xmlns:jsp="http://java.sun.com/JSP/Page"
     3 	  xmlns:c="http://java.sun.com/jsp/jstl/core"
     4 	  version="2.0">
     5     <jsp:directive.page contentType="application/xhtml+xml"/>
     6     <jsp:output doctype-system="http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"
     7 		doctype-root-element="html"
     8 		omit-xml-declaration="false"/>
     9 
    10     <html xmlns="http://www.w3.org/1999/xhtml">
    11 	<head>
    12 	    <title>SpringDemo1</title>
    13 	    <link href="styl.css" type="text/css" rel="StyleSheet"/>
    14 	</head>
    15 	<body>
    16 	    <h1>SpringDemo1</h1>
    17 	    <p>Spring JdbcTemplate</p>
    18 	    <p>Vypíšeme seznam knih:</p>
    19 
    20 	    <jsp:useBean id="demo" class="cz.frantovo.springDemo1.web.SpringDemo1Bean" scope="request"/>
    21 	    <table>
    22 		<thead>
    23 		    <tr>
    24 			<td>Název knihy</td>
    25 			<td>Rok vydání</td>
    26 			<td>Počet stran</td>
    27 			<td>ISBN</td>
    28 		    </tr>
    29 		</thead>
    30 		<tbody>
    31 		    <c:forEach var="kniha" items="${demo.knihyJdbc}">
    32 			<tr>
    33 			    <td><c:out value="${kniha.nazev}"/></td>
    34 			    <td><c:out value="${kniha.rokVydani}"/></td>
    35 			    <td><c:out value="${kniha.pocetStran}"/></td>
    36 			    <td><c:out value="${kniha.isbn}"/></td>
    37 			</tr>
    38 		    </c:forEach>
    39 		</tbody>
    40 	    </table>
    41 
    42 	    <p>Zdrojové kódy této aplikace najdete v <a href="http://hg.frantovo.cz/SpringDemo1/">Mercurialu</a>.</p>
    43 
    44 	</body>
    45     </html>
    46 
    47 </jsp:root>