java/nekurak.net-web/web/WEB-INF/casti/detail.jsp
author František Kučera <franta-hg@frantovo.cz>
Wed, 09 Jun 2010 15:54:11 +0200
changeset 138 0ad2c44c29b8
parent 126 d47f6a75d20e
child 145 0efefbf5f8b6
permissions -rw-r--r--
Added tag 14. díl for changeset 5a7a24ac3a15
     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 	  version="2.0">
     8 
     9     <jsp:useBean id="detail" class="cz.frantovo.nekurak.web.Detail" scope="request"/>
    10 
    11     <jsp:setProperty name="detail" property="id" value="${param.podnik}"/>
    12 
    13     <nk:stranka titulek="${fn:escapeXml(detail.podnik.nazev)}">
    14 
    15 	<h1><c:out value="${detail.podnik.nazev}" /></h1>
    16 
    17 
    18 	<c:choose>
    19 	    <c:when test="${detail.mapa == null}">
    20 		<p>
    21 		    Souřadnice tohoto podniku nejsou známé.<br/>
    22 		    (možná ještě nebyl proveden jejich výpočet)
    23 		</p>
    24 	    </c:when>
    25 	    <c:otherwise>
    26 		<p>
    27 		    Zeměpisná šířka: ${detail.podnik.sirka}<br/>
    28 		    Zeměpisná délka: ${detail.podnik.delka}<br/>
    29 		    Loc: ${detail.podnik.sirka}, ${detail.podnik.delka}<br/>
    30 		</p>
    31 		<p>
    32 		    <img alt="mapa" src="${fn:escapeXml(detail.mapa)}"/>
    33 		</p>
    34 	    </c:otherwise>
    35 	</c:choose>
    36 
    37 	<nk:komentareVypis podnik="${detail.podnik}"/>
    38 
    39     </nk:stranka>
    40 
    41 </jsp:root>