franta-hg@130: <?xml version="1.0" encoding="UTF-8"?> franta-hg@130: <jsp:root xmlns:jsp="http://java.sun.com/JSP/Page" franta-hg@145: xmlns:c="http://java.sun.com/jsp/jstl/core" franta-hg@145: xmlns:fmt="http://java.sun.com/jsp/jstl/fmt" franta-hg@145: xmlns:fn="http://java.sun.com/jsp/jstl/functions" franta-hg@145: xmlns:nk="urn:jsptagdir:/WEB-INF/tags/nekurak" franta-hg@145: version="2.0"> franta-hg@130: franta-hg@145: <jsp:useBean id="odeslatKomentar" class="cz.frantovo.nekurak.web.OdeslatKomentar" scope="request"/> franta-hg@145: <jsp:useBean id="komentar" class="cz.frantovo.nekurak.dto.Komentar" scope="request"/> franta-hg@130: franta-hg@145: <!-- franta-hg@145: Přijímá komentáře odeslané jako klasický HTTP formulář. franta-hg@145: AJAXové komentáře se zpracovávají servletem. franta-hg@145: TODO: sloučit do servletu franta-hg@145: --> franta-hg@130: franta-hg@145: <fmt:message key="komentar.odeslat.nadpis" var="titulekStranky"/> franta-hg@145: <nk:stranka titulek="${titulekStranky}"> franta-hg@130: franta-hg@145: <h1><c:out value="${titulekStranky}"/></h1> franta-hg@130: franta-hg@145: <jsp:setProperty name="komentar" property="podnik" value="${param.podnik}"/> franta-hg@145: <jsp:setProperty name="komentar" property="nadpis" value="${param.nadpis}"/> franta-hg@145: <jsp:setProperty name="komentar" property="komentar" value="${param.komentar}"/> franta-hg@145: <jsp:setProperty name="komentar" property="typ" value="${param.typ}"/> franta-hg@145: <jsp:setProperty name="odeslatKomentar" property="komentar" value="${komentar}"/> franta-hg@130: franta-hg@145: <c:choose> franta-hg@145: <c:when test="${odeslatKomentar.ok}"> franta-hg@145: <p class="informacniHlaska"> franta-hg@145: <fmt:message key="komentar.odeslat.ok"/>, franta-hg@179: <a href="${zc}?akce=detail&amp;podnik=${komentar.podnik}"> franta-hg@145: <fmt:message key="komentar.odeslat.pokracujte"/> franta-hg@145: </a>. franta-hg@145: </p> franta-hg@145: </c:when> franta-hg@145: <c:otherwise> franta-hg@145: <p class="chybovaHlaska"><fmt:message key="komentar.odeslat.chyba"/></p> franta-hg@145: </c:otherwise> franta-hg@145: </c:choose> franta-hg@132: franta-hg@145: </nk:stranka> franta-hg@130: </jsp:root>