java/nekurak.net-web/web/WEB-INF/casti/uvod.jsp
author František Kučera <franta-hg@frantovo.cz>
Sat Jan 15 00:57:45 2011 +0100 (2011-01-15)
changeset 170 56deca862adc
parent 158 e1ac3efcd140
child 171 e619057bad66
permissions -rw-r--r--
Filtrování podniků podle kategorie.
     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 		  xmlns:nk="urn:jsptagdir:/WEB-INF/tags/nekurak"
     7 		  xmlns:nkfn="/WEB-INF/nekurakFunkce"
     8 		  version="2.0">
     9 
    10 	<jsp:useBean id="uvod" class="cz.frantovo.nekurak.web.Uvod" scope="request"/>
    11 	<jsp:setProperty name="uvod" property="kategorie"/>
    12 
    13 	<nk:stranka>
    14 
    15 		<p>
    16 			<c:choose>
    17 				<c:when test="${uvod.kategorie == null}">
    18 					<fmt:message key="uvod.naposledyPridanePodniky"/>:		
    19 				</c:when>
    20 				<c:otherwise>
    21 					<fmt:message key="uvod.podnikyKategorie"/>:
    22 					<fmt:message key="dto.kategorie.${uvod.kategorie}.nazev"/>.
    23 				</c:otherwise>
    24 			</c:choose>
    25 
    26 		</p>
    27 
    28 		<c:forEach var="p" items="${uvod.podniky}">
    29 			<nk:podnikZahlavi podnik="${p}" detailPodniku="false"/>
    30 		</c:forEach>
    31 
    32 		<!-- konec obtékaných bloků -->
    33 		<div class="cistic"></div>
    34 
    35 	</nk:stranka>
    36 
    37 </jsp:root>