java/SpringDemo1/SpringDemo1-war/web/index.jsp
changeset 1 9a3fced9634d
child 5 7cf0cbef2936
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/java/SpringDemo1/SpringDemo1-war/web/index.jsp	Wed Feb 10 20:55:08 2010 +0100
     1.3 @@ -0,0 +1,30 @@
     1.4 +<?xml version="1.0" encoding="UTF-8"?>
     1.5 +<jsp:root xmlns:jsp="http://java.sun.com/JSP/Page"
     1.6 +	  xmlns:c="http://java.sun.com/jsp/jstl/core"
     1.7 +	  version="2.0">
     1.8 +    <jsp:directive.page contentType="application/xhtml+xml"/>
     1.9 +    <jsp:output doctype-system="http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"
    1.10 +		doctype-root-element="html"
    1.11 +		omit-xml-declaration="false"/>
    1.12 +
    1.13 +    <html xmlns="http://www.w3.org/1999/xhtml">
    1.14 +	<head>
    1.15 +	    <title>SpringDemo1</title>
    1.16 +	</head>
    1.17 +	<body>
    1.18 +	    <h1>SpringDemo1</h1>
    1.19 +	    <p>Spring JDBC…</p>
    1.20 +	    <p>Vypíšeme seznam knih:</p>
    1.21 +
    1.22 +	    <jsp:useBean id="demo" class="cz.frantovo.springDemo1.web.SpringDemo1Bean" scope="request"/>
    1.23 +	    <ul>
    1.24 +		<c:forEach var="kniha" items="${demo.knihy}">
    1.25 +		    <li><c:out value="${kniha.nazev}"/></li>
    1.26 +		</c:forEach>
    1.27 +	    </ul>
    1.28 +
    1.29 +
    1.30 +	</body>
    1.31 +    </html>
    1.32 +
    1.33 +</jsp:root>