java/SpringDemo1/SpringDemo1-war/web/index.jsp
author František Kučera <franta-hg@frantovo.cz>
Wed, 10 Feb 2010 20:55:08 +0100
changeset 1 9a3fced9634d
child 5 7cf0cbef2936
permissions -rw-r--r--
Přechod na EAR, EJB.
     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 	</head>
    14 	<body>
    15 	    <h1>SpringDemo1</h1>
    16 	    <p>Spring JDBC…</p>
    17 	    <p>Vypíšeme seznam knih:</p>
    18 
    19 	    <jsp:useBean id="demo" class="cz.frantovo.springDemo1.web.SpringDemo1Bean" scope="request"/>
    20 	    <ul>
    21 		<c:forEach var="kniha" items="${demo.knihy}">
    22 		    <li><c:out value="${kniha.nazev}"/></li>
    23 		</c:forEach>
    24 	    </ul>
    25 
    26 
    27 	</body>
    28     </html>
    29 
    30 </jsp:root>