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@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@42: <h1><fmt:message key="pridatPodnik.nadpis"/></h1> franta-hg@40: franta-hg@40: <c:choose> franta-hg@40: <c:when test="${param.akcePridat == 'pridej'}"> franta-hg@40: <jsp:setProperty name="podnik" property="*"/> franta-hg@40: <jsp:setProperty name="pridatPodnik" property="podnik" value="${podnik}"/> franta-hg@40: <c:if test="${pridatPodnik.pridano}"> franta-hg@42: <p><fmt:message key="pridatPodnik.bylPridan"/></p> franta-hg@40: </c:if> franta-hg@40: </c:when> franta-hg@40: <c:otherwise> franta-hg@40: <form method="post" action="?akce=pridatPodnik&amp;akcePridat=pridej"> franta-hg@40: <fieldset> franta-hg@42: <label><fmt:message key="dto.podnik.nazev"/>: <input type="text" name="nazev" maxlength="255"/></label><br/> franta-hg@42: <label><fmt:message key="dto.podnik.popis"/>: <input type="text" name="popis" maxlength="255"/></label><br/> franta-hg@42: <fmt:message key="dto.podnik.url.tip" var="urlTip"/> franta-hg@42: <label title="${urlTip}"><fmt:message key="dto.podnik.url"/>: <input type="text" name="url" maxlength="255"/></label><br/> franta-hg@42: <label><fmt:message key="dto.podnik.ulice"/>: <input type="text" name="ulice" maxlength="64"/></label><br/> franta-hg@42: <fmt:message key="dto.podnik.cisloPopisne.tip" var="cisloPopisneTip"/> franta-hg@42: <label title="${cisloPopisneTip}"><fmt:message key="dto.podnik.cisloPopisne"/>: <input type="text" name="cisloPopisne" maxlength="5"/></label><br/> franta-hg@42: <label><fmt:message key="dto.podnik.mesto"/>: <input type="text" name="mesto" maxlength="64"/></label><br/> franta-hg@42: <button value="submit"><fmt:message key="pridatPodnik.tlacitko"/></button> franta-hg@40: </fieldset> franta-hg@40: </form> franta-hg@40: </c:otherwise> franta-hg@40: </c:choose> franta-hg@40: franta-hg@40: franta-hg@40: franta-hg@40: franta-hg@40: </jsp:root>