java/nekurak.net-web/web/WEB-INF/casti/detail.jsp
changeset 145 0efefbf5f8b6
parent 126 d47f6a75d20e
child 158 e1ac3efcd140
     1.1 --- a/java/nekurak.net-web/web/WEB-INF/casti/detail.jsp	Sat Jun 19 14:37:11 2010 +0200
     1.2 +++ b/java/nekurak.net-web/web/WEB-INF/casti/detail.jsp	Sun Jun 20 14:46:47 2010 +0200
     1.3 @@ -1,41 +1,41 @@
     1.4  <?xml version="1.0" encoding="UTF-8"?>
     1.5  <jsp:root xmlns:jsp="http://java.sun.com/JSP/Page"
     1.6 -	  xmlns:c="http://java.sun.com/jsp/jstl/core"
     1.7 -	  xmlns:fmt="http://java.sun.com/jsp/jstl/fmt"
     1.8 -	  xmlns:fn="http://java.sun.com/jsp/jstl/functions"
     1.9 -	  xmlns:nk="urn:jsptagdir:/WEB-INF/tags/nekurak"
    1.10 -	  version="2.0">
    1.11 +		  xmlns:c="http://java.sun.com/jsp/jstl/core"
    1.12 +		  xmlns:fmt="http://java.sun.com/jsp/jstl/fmt"
    1.13 +		  xmlns:fn="http://java.sun.com/jsp/jstl/functions"
    1.14 +		  xmlns:nk="urn:jsptagdir:/WEB-INF/tags/nekurak"
    1.15 +		  version="2.0">
    1.16  
    1.17 -    <jsp:useBean id="detail" class="cz.frantovo.nekurak.web.Detail" scope="request"/>
    1.18 +	<jsp:useBean id="detail" class="cz.frantovo.nekurak.web.Detail" scope="request"/>
    1.19  
    1.20 -    <jsp:setProperty name="detail" property="id" value="${param.podnik}"/>
    1.21 +	<jsp:setProperty name="detail" property="id" value="${param.podnik}"/>
    1.22  
    1.23 -    <nk:stranka titulek="${fn:escapeXml(detail.podnik.nazev)}">
    1.24 +	<nk:stranka titulek="${fn:escapeXml(detail.podnik.nazev)}">
    1.25  
    1.26 -	<h1><c:out value="${detail.podnik.nazev}" /></h1>
    1.27 +		<h1><c:out value="${detail.podnik.nazev}" /></h1>
    1.28  
    1.29  
    1.30 -	<c:choose>
    1.31 -	    <c:when test="${detail.mapa == null}">
    1.32 -		<p>
    1.33 -		    Souřadnice tohoto podniku nejsou známé.<br/>
    1.34 -		    (možná ještě nebyl proveden jejich výpočet)
    1.35 -		</p>
    1.36 -	    </c:when>
    1.37 -	    <c:otherwise>
    1.38 -		<p>
    1.39 -		    Zeměpisná šířka: ${detail.podnik.sirka}<br/>
    1.40 -		    Zeměpisná délka: ${detail.podnik.delka}<br/>
    1.41 -		    Loc: ${detail.podnik.sirka}, ${detail.podnik.delka}<br/>
    1.42 -		</p>
    1.43 -		<p>
    1.44 -		    <img alt="mapa" src="${fn:escapeXml(detail.mapa)}"/>
    1.45 -		</p>
    1.46 -	    </c:otherwise>
    1.47 -	</c:choose>
    1.48 +		<c:choose>
    1.49 +			<c:when test="${detail.mapa == null}">
    1.50 +				<p>
    1.51 +					Souřadnice tohoto podniku nejsou známé.<br/>
    1.52 +					(možná ještě nebyl proveden jejich výpočet)
    1.53 +				</p>
    1.54 +			</c:when>
    1.55 +			<c:otherwise>
    1.56 +				<p>
    1.57 +					Zeměpisná šířka: ${detail.podnik.sirka}<br/>
    1.58 +					Zeměpisná délka: ${detail.podnik.delka}<br/>
    1.59 +					Loc: ${detail.podnik.sirka}, ${detail.podnik.delka}<br/>
    1.60 +				</p>
    1.61 +				<p>
    1.62 +					<img alt="mapa" src="${fn:escapeXml(detail.mapa)}"/>
    1.63 +				</p>
    1.64 +			</c:otherwise>
    1.65 +		</c:choose>
    1.66  
    1.67 -	<nk:komentareVypis podnik="${detail.podnik}"/>
    1.68 +		<nk:komentareVypis podnik="${detail.podnik}"/>
    1.69  
    1.70 -    </nk:stranka>
    1.71 +	</nk:stranka>
    1.72  
    1.73  </jsp:root>