franta-hg@40: <?xml version="1.0" encoding="UTF-8"?>
franta-hg@40: <jsp:root xmlns:jsp="http://java.sun.com/JSP/Page"
franta-hg@40: 	  xmlns:c="http://java.sun.com/jsp/jstl/core"
franta-hg@40: 	  xmlns:fmt="http://java.sun.com/jsp/jstl/fmt"
franta-hg@40: 	  xmlns:fn="http://java.sun.com/jsp/jstl/functions"
franta-hg@73: 	  xmlns:nk="urn:jsptagdir:/WEB-INF/tags/nekurak"
franta-hg@40: 	  version="2.0">
franta-hg@40: 
franta-hg@40:     <jsp:useBean id="podnik" class="cz.frantovo.nekurak.dto.Podnik" scope="request"/>
franta-hg@40:     <jsp:useBean id="pridatPodnik" class="cz.frantovo.nekurak.web.PridatPodnik" scope="request"/>
franta-hg@40: 
franta-hg@73:     <fmt:message key="pridatPodnik.nadpis" var="titulekStranky"/>
franta-hg@73:     <nk:stranka titulek="${titulekStranky}">
franta-hg@40: 
franta-hg@73: 	<h1><c:out value="${titulekStranky}"/></h1>
franta-hg@40: 
franta-hg@73: 	<c:choose>
franta-hg@73: 	    <c:when test="${param.akcePridat == 'pridej'}">
franta-hg@73: 		<c:catch var="pridatPodnikChyba">
franta-hg@73: 		    <jsp:setProperty name="podnik" property="*"/>
franta-hg@73: 		    <jsp:setProperty name="pridatPodnik" property="podnik" value="${podnik}"/>
franta-hg@73: 		    <c:set var="pridatPodnikOK" value="${pridatPodnik.pridano}"/>
franta-hg@73: 		</c:catch>
franta-hg@73: 		<c:choose>
franta-hg@73: 		    <c:when test="${pridatPodnikChyba == null}">
franta-hg@73: 			<p><fmt:message key="pridatPodnik.bylPridan"/></p>
franta-hg@73: 		    </c:when>
franta-hg@73: 		    <c:otherwise>
franta-hg@73: 			<p class="chybovaHlaska"><fmt:message key="pridatPodnik.nebylPridan"/></p>
franta-hg@73: 		    </c:otherwise>
franta-hg@73: 		</c:choose>
franta-hg@73: 	    </c:when>
franta-hg@73: 	    <c:otherwise>
franta-hg@73: 		<form method="post" action="?akce=pridatPodnik&amp;amp;akcePridat=pridej">
franta-hg@73: 		    <fieldset>
franta-hg@73: 			<label><fmt:message key="dto.podnik.nazev"/>: <input type="text" name="nazev" maxlength="255"/></label><br/>
franta-hg@73: 			<label><fmt:message key="dto.podnik.popis"/>: <input type="text" name="popis" maxlength="255"/></label><br/>
franta-hg@73: 			    <fmt:message key="dto.podnik.url.tip" var="urlTip"/>
franta-hg@73: 			<label title="${urlTip}"><fmt:message key="dto.podnik.url"/>: <input type="text" name="url" maxlength="255"/></label><br/>
franta-hg@73: 			<label><fmt:message key="dto.podnik.ulice"/>: <input type="text" name="ulice" maxlength="64"/></label><br/>
franta-hg@73: 			    <fmt:message key="dto.podnik.cisloPopisne.tip" var="cisloPopisneTip"/>
franta-hg@73: 			<label title="${cisloPopisneTip}"><fmt:message key="dto.podnik.cisloPopisne"/>: <input type="text" name="cisloPopisne" maxlength="5"/></label><br/>
franta-hg@73: 			<label><fmt:message key="dto.podnik.mesto"/>: <input type="text" name="mesto" maxlength="64"/></label><br/>
franta-hg@73: 			<button value="submit"><fmt:message key="pridatPodnik.tlacitko"/></button>
franta-hg@73: 		    </fieldset>
franta-hg@73: 		</form>
franta-hg@73: 	    </c:otherwise>
franta-hg@73: 	</c:choose>
franta-hg@40: 
franta-hg@73:     </nk:stranka>
franta-hg@40: 
franta-hg@40: </jsp:root>