java/nekurak.net-web/web/WEB-INF/casti/uvod.jsp
changeset 39 ea342cf8c15a
parent 37 1b481b911614
child 40 67d332d48562
     1.1 --- a/java/nekurak.net-web/web/WEB-INF/casti/uvod.jsp	Wed Feb 24 21:48:49 2010 +0100
     1.2 +++ b/java/nekurak.net-web/web/WEB-INF/casti/uvod.jsp	Thu Feb 25 02:41:57 2010 +0100
     1.3 @@ -2,8 +2,25 @@
     1.4  <jsp:root xmlns:jsp="http://java.sun.com/JSP/Page"
     1.5  	  xmlns:c="http://java.sun.com/jsp/jstl/core"
     1.6  	  xmlns:fmt="http://java.sun.com/jsp/jstl/fmt"
     1.7 +	  xmlns:fn="http://java.sun.com/jsp/jstl/functions"
     1.8  	  version="2.0">
     1.9  
    1.10 -    <p>Tady bude úvodní stránka.</p>
    1.11 +    <jsp:useBean id="uvod" class="cz.frantovo.nekurak.web.Uvod" scope="request"/>
    1.12 +
    1.13 +    <p>Naposledy přidané podniky:</p>
    1.14 +
    1.15 +    <c:forEach var="p" items="${uvod.podniky}">
    1.16 +	<h2><c:out value="${p.nazev}"/></h2>
    1.17 +	<p><c:out value="${p.popis}"/></p>
    1.18 +	<p>
    1.19 +	    Adresa:<br/>
    1.20 +	    <c:out value="${p.ulice}"/>&amp;#160;
    1.21 +	    <c:out value="${p.cisloPopisne}"/><br/>
    1.22 +	    <c:out value="${p.mesto}"/>
    1.23 +	</p>
    1.24 +	<c:if test="${p.url != null}">
    1.25 +	    <p><a href="${fn:escapeXml(p.url)}">www stránka</a></p>
    1.26 +	</c:if>
    1.27 +    </c:forEach>
    1.28  
    1.29  </jsp:root>