java/nekurak.net-web/web/WEB-INF/casti/detail.jsp
author František Kučera <franta-hg@frantovo.cz>
Tue, 08 Jun 2010 09:09:17 +0200
changeset 130 1bbff3f5181f
parent 126 d47f6a75d20e
child 145 0efefbf5f8b6
permissions -rw-r--r--
komentáře – escapování a EJB
franta-hg@40
     1
<?xml version="1.0" encoding="UTF-8"?>
franta-hg@40
     2
<jsp:root xmlns:jsp="http://java.sun.com/JSP/Page"
franta-hg@40
     3
	  xmlns:c="http://java.sun.com/jsp/jstl/core"
franta-hg@40
     4
	  xmlns:fmt="http://java.sun.com/jsp/jstl/fmt"
franta-hg@40
     5
	  xmlns:fn="http://java.sun.com/jsp/jstl/functions"
franta-hg@73
     6
	  xmlns:nk="urn:jsptagdir:/WEB-INF/tags/nekurak"
franta-hg@40
     7
	  version="2.0">
franta-hg@40
     8
franta-hg@100
     9
    <jsp:useBean id="detail" class="cz.frantovo.nekurak.web.Detail" scope="request"/>
franta-hg@100
    10
franta-hg@100
    11
    <jsp:setProperty name="detail" property="id" value="${param.podnik}"/>
franta-hg@100
    12
franta-hg@100
    13
    <nk:stranka titulek="${fn:escapeXml(detail.podnik.nazev)}">
franta-hg@100
    14
franta-hg@100
    15
	<h1><c:out value="${detail.podnik.nazev}" /></h1>
franta-hg@100
    16
franta-hg@100
    17
franta-hg@100
    18
	<c:choose>
franta-hg@100
    19
	    <c:when test="${detail.mapa == null}">
franta-hg@100
    20
		<p>
franta-hg@100
    21
		    Souřadnice tohoto podniku nejsou známé.<br/>
franta-hg@100
    22
		    (možná ještě nebyl proveden jejich výpočet)
franta-hg@100
    23
		</p>
franta-hg@100
    24
	    </c:when>
franta-hg@100
    25
	    <c:otherwise>
franta-hg@100
    26
		<p>
franta-hg@100
    27
		    Zeměpisná šířka: ${detail.podnik.sirka}<br/>
franta-hg@103
    28
		    Zeměpisná délka: ${detail.podnik.delka}<br/>
franta-hg@100
    29
		    Loc: ${detail.podnik.sirka}, ${detail.podnik.delka}<br/>
franta-hg@100
    30
		</p>
franta-hg@100
    31
		<p>
franta-hg@100
    32
		    <img alt="mapa" src="${fn:escapeXml(detail.mapa)}"/>
franta-hg@100
    33
		</p>
franta-hg@100
    34
	    </c:otherwise>
franta-hg@100
    35
	</c:choose>
franta-hg@100
    36
franta-hg@126
    37
	<nk:komentareVypis podnik="${detail.podnik}"/>
franta-hg@100
    38
franta-hg@73
    39
    </nk:stranka>
franta-hg@40
    40
franta-hg@40
    41
</jsp:root>