author | František Kučera <franta-hg@frantovo.cz> |
Wed Jan 26 03:23:32 2011 +0100 (2011-01-26) | |
changeset 179 | 2ed9f3231a28 |
parent 158 | e1ac3efcd140 |
child 185 | 60658773f604 |
permissions | -rw-r--r-- |
franta-hg@158 | 1 |
<?xml version="1.0" encoding="UTF-8"?> |
franta-hg@158 | 2 |
<jsp:root xmlns:jsp="http://java.sun.com/JSP/Page" |
franta-hg@158 | 3 |
xmlns:c="http://java.sun.com/jsp/jstl/core" |
franta-hg@158 | 4 |
xmlns:fmt="http://java.sun.com/jsp/jstl/fmt" |
franta-hg@158 | 5 |
xmlns:fn="http://java.sun.com/jsp/jstl/functions" |
franta-hg@158 | 6 |
xmlns:nkfn="/WEB-INF/nekurakFunkce" |
franta-hg@158 | 7 |
version="2.0"> |
franta-hg@158 | 8 |
|
franta-hg@179 | 9 |
<jsp:directive.attribute name="podnik" type="cz.frantovo.nekurak.dto.Podnik" required="true"/> |
franta-hg@179 | 10 |
<jsp:directive.attribute name="mapa" type="java.lang.String" required="true"/> |
franta-hg@158 | 11 |
|
franta-hg@158 | 12 |
<c:choose> |
franta-hg@179 | 13 |
<c:when test="${mapa == null}"> |
franta-hg@158 | 14 |
<p> |
franta-hg@158 | 15 |
Souřadnice tohoto podniku nejsou známé.<br/> |
franta-hg@158 | 16 |
(možná ještě nebyl proveden jejich výpočet) |
franta-hg@158 | 17 |
</p> |
franta-hg@158 | 18 |
</c:when> |
franta-hg@158 | 19 |
<c:otherwise> |
franta-hg@158 | 20 |
<p> |
franta-hg@179 | 21 |
Zeměpisná šířka: ${podnik.sirka}<br/> |
franta-hg@179 | 22 |
Zeměpisná délka: ${podnik.delka}<br/> |
franta-hg@179 | 23 |
Loc: ${podnik.sirka}, ${podnik.delka}<br/> |
franta-hg@158 | 24 |
</p> |
franta-hg@158 | 25 |
<p> |
franta-hg@179 | 26 |
<img alt="mapa" src="${fn:escapeXml(mapa)}"/> |
franta-hg@158 | 27 |
</p> |
franta-hg@158 | 28 |
</c:otherwise> |
franta-hg@158 | 29 |
</c:choose> |
franta-hg@158 | 30 |
|
franta-hg@158 | 31 |
|
franta-hg@158 | 32 |
</jsp:root> |