diff -r 000000000000 -r 9a3fced9634d java/SpringDemo1/SpringDemo1-war/web/index.jsp --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/java/SpringDemo1/SpringDemo1-war/web/index.jsp Wed Feb 10 20:55:08 2010 +0100 @@ -0,0 +1,30 @@ +<?xml version="1.0" encoding="UTF-8"?> +<jsp:root xmlns:jsp="http://java.sun.com/JSP/Page" + xmlns:c="http://java.sun.com/jsp/jstl/core" + version="2.0"> + <jsp:directive.page contentType="application/xhtml+xml"/> + <jsp:output doctype-system="http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd" + doctype-root-element="html" + omit-xml-declaration="false"/> + + <html xmlns="http://www.w3.org/1999/xhtml"> + <head> + <title>SpringDemo1</title> + </head> + <body> + <h1>SpringDemo1</h1> + <p>Spring JDBC…</p> + <p>Vypíšeme seznam knih:</p> + + <jsp:useBean id="demo" class="cz.frantovo.springDemo1.web.SpringDemo1Bean" scope="request"/> + <ul> + <c:forEach var="kniha" items="${demo.knihy}"> + <li><c:out value="${kniha.nazev}"/></li> + </c:forEach> + </ul> + + + </body> + </html> + +</jsp:root>