java/SpringDemo1/SpringDemo1-war/web/index.jsp
changeset 5 7cf0cbef2936
parent 1 9a3fced9634d
child 7 a8c280a7c0e2
     1.1 --- a/java/SpringDemo1/SpringDemo1-war/web/index.jsp	Wed Feb 10 20:55:08 2010 +0100
     1.2 +++ b/java/SpringDemo1/SpringDemo1-war/web/index.jsp	Wed Feb 10 23:11:38 2010 +0100
     1.3 @@ -10,19 +10,34 @@
     1.4      <html xmlns="http://www.w3.org/1999/xhtml">
     1.5  	<head>
     1.6  	    <title>SpringDemo1</title>
     1.7 +	    <link href="styl.css" type="text/css" rel="StyleSheet"/>
     1.8  	</head>
     1.9  	<body>
    1.10  	    <h1>SpringDemo1</h1>
    1.11 -	    <p>Spring JDBC…</p>
    1.12 +	    <p>Spring JdbcTemplate</p>
    1.13  	    <p>Vypíšeme seznam knih:</p>
    1.14  
    1.15  	    <jsp:useBean id="demo" class="cz.frantovo.springDemo1.web.SpringDemo1Bean" scope="request"/>
    1.16 -	    <ul>
    1.17 -		<c:forEach var="kniha" items="${demo.knihy}">
    1.18 -		    <li><c:out value="${kniha.nazev}"/></li>
    1.19 -		</c:forEach>
    1.20 -	    </ul>
    1.21 -
    1.22 +	    <table>
    1.23 +		<thead>
    1.24 +		    <tr>
    1.25 +			<td>Název knihy</td>
    1.26 +			<td>Rok vydání</td>
    1.27 +			<td>Počet stran</td>
    1.28 +			<td>ISBN</td>
    1.29 +		    </tr>
    1.30 +		</thead>
    1.31 +		<tbody>
    1.32 +		    <c:forEach var="kniha" items="${demo.knihyJdbc}">
    1.33 +			<tr>
    1.34 +			    <td><c:out value="${kniha.nazev}"/></td>
    1.35 +			    <td><c:out value="${kniha.rokVydani}"/></td>
    1.36 +			    <td><c:out value="${kniha.pocetStran}"/></td>
    1.37 +			    <td><c:out value="${kniha.isbn}"/></td>
    1.38 +			</tr>
    1.39 +		    </c:forEach>
    1.40 +		</tbody>
    1.41 +	    </table>
    1.42  
    1.43  	</body>
    1.44      </html>