java/nekurak.net-web/web/WEB-INF/casti/uvod.jsp
author František Kučera <franta-hg@frantovo.cz>
Thu Feb 25 08:26:46 2010 +0100 (2010-02-25)
changeset 40 67d332d48562
parent 39 ea342cf8c15a
child 42 77c8271add7d
permissions -rw-r--r--
Zakládání podniků + HTTP autentizace.
     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 	  xmlns:fmt="http://java.sun.com/jsp/jstl/fmt"
     5 	  xmlns:fn="http://java.sun.com/jsp/jstl/functions"
     6 	  version="2.0">
     7 
     8     <jsp:useBean id="uvod" class="cz.frantovo.nekurak.web.Uvod" scope="request"/>
     9 
    10     <p>Naposledy přidané podniky:</p>
    11 
    12     <c:forEach var="p" items="${uvod.podniky}">
    13 	<div class="podnik">
    14 	    <a href="?akce=detail&amp;amp;podnik=${p.id}"><h2><c:out value="${p.nazev}"/></h2></a>
    15 	    <p><c:out value="${p.popis}"/></p>
    16 	    <p>
    17 	    Adresa:<br/>
    18 		<c:out value="${p.ulice}"/>&amp;#160;
    19 		<c:out value="${p.cisloPopisne}"/><br/>
    20 		<c:out value="${p.mesto}"/>
    21 	    </p>
    22 	    <c:if test="${p.url != null}">
    23 		<p><a href="${fn:escapeXml(p.url)}">www stránka</a></p>
    24 	    </c:if>
    25 	</div>
    26     </c:forEach>
    27 
    28 </jsp:root>