franta-hg@28: <?xml version="1.0" encoding="UTF-8"?>
franta-hg@28: <jsp:root xmlns:jsp="http://java.sun.com/JSP/Page"
franta-hg@28: 	  xmlns:c="http://java.sun.com/jsp/jstl/core"
franta-hg@28: 	  version="2.0">
franta-hg@28:     <jsp:directive.page contentType="application/xhtml+xml"/>
franta-hg@28:     <jsp:output doctype-system="http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"
franta-hg@28: 		doctype-root-element="html"
franta-hg@28: 		omit-xml-declaration="false"/>
franta-hg@28: 
franta-hg@28:     <html xmlns="http://www.w3.org/1999/xhtml">
franta-hg@28: 	<head>
franta-hg@28: 	    <title>Nekuřák.net</title>
franta-hg@28: 	    <link href="styl.css" type="text/css" rel="StyleSheet"/>
franta-hg@28: 	</head>
franta-hg@28: 	<body>
franta-hg@28: 	    <h1>Nekuřák.net – Hibernate:</h1>
franta-hg@28: 	    <p>Načítáme údaje z databáze.</p>
franta-hg@28: 
franta-hg@28: 	    <p>Seznam podniků načtený pomocí Hibernate:</p>
franta-hg@28: 	    <!-- Vytvoříme si instanci JavaBeany -->
franta-hg@28: 	    <jsp:useBean id="podnikyWeb" class="cz.frantovo.nekurak.web.PodnikyHibernateWeb" scope="request"/>
franta-hg@28: 	    <table>
franta-hg@28: 		<thead>
franta-hg@28: 		    <tr>
franta-hg@28: 			<td>Číslo</td>
franta-hg@28: 			<td>Název</td>
franta-hg@28: 		    </tr>
franta-hg@28: 		</thead>
franta-hg@28: 		<tbody>
franta-hg@28: 		    <c:forEach var="p" items="${podnikyWeb.podniky}">
franta-hg@28: 			<tr>
franta-hg@28: 			    <td><c:out value="${p.id}"/></td>
franta-hg@28: 			    <td><c:out value="${p.nazev}"/></td>
franta-hg@28: 			</tr>
franta-hg@28: 		    </c:forEach>
franta-hg@28: 		</tbody>
franta-hg@28: 	    </table>
franta-hg@28: 
franta-hg@28: 	</body>
franta-hg@28:     </html>
franta-hg@28: 
franta-hg@28: </jsp:root>