1.1 --- a/java/nekurak.net-web/web/WEB-INF/casti/odeslatKomentar.jsp Sat Jun 19 11:19:27 2010 +0200
1.2 +++ b/java/nekurak.net-web/web/WEB-INF/casti/odeslatKomentar.jsp Tue Jan 25 20:28:32 2011 +0100
1.3 @@ -1,43 +1,44 @@
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="odeslatKomentar" class="cz.frantovo.nekurak.web.OdeslatKomentar" scope="request"/>
1.18 - <jsp:useBean id="komentar" class="cz.frantovo.nekurak.dto.Komentar" scope="request"/>
1.19 + <jsp:useBean id="odeslatKomentar" class="cz.frantovo.nekurak.web.OdeslatKomentar" scope="request"/>
1.20 + <jsp:useBean id="komentar" class="cz.frantovo.nekurak.dto.Komentar" scope="request"/>
1.21
1.22 + <!--
1.23 + Přijímá komentáře odeslané jako klasický HTTP formulář.
1.24 + AJAXové komentáře se zpracovávají servletem.
1.25 + TODO: sloučit do servletu
1.26 + -->
1.27
1.28 - <fmt:message key="komentar.odeslat.nadpis" var="titulekStranky"/>
1.29 - <nk:stranka titulek="${titulekStranky}">
1.30 + <fmt:message key="komentar.odeslat.nadpis" var="titulekStranky"/>
1.31 + <nk:stranka titulek="${titulekStranky}">
1.32
1.33 - <h1><c:out value="${titulekStranky}"/></h1>
1.34 + <h1><c:out value="${titulekStranky}"/></h1>
1.35
1.36 - <jsp:setProperty name="komentar" property="podnik" value="${param.podnik}"/>
1.37 - <jsp:setProperty name="komentar" property="nadpis" value="${param.nadpis}"/>
1.38 - <jsp:setProperty name="komentar" property="komentar" value="${param.komentar}"/>
1.39 - <jsp:setProperty name="komentar" property="typ" value="${param.typ}"/>
1.40 - <jsp:setProperty name="odeslatKomentar" property="komentar" value="${komentar}"/>
1.41 + <jsp:setProperty name="komentar" property="podnik" value="${param.podnik}"/>
1.42 + <jsp:setProperty name="komentar" property="nadpis" value="${param.nadpis}"/>
1.43 + <jsp:setProperty name="komentar" property="komentar" value="${param.komentar}"/>
1.44 + <jsp:setProperty name="komentar" property="typ" value="${param.typ}"/>
1.45 + <jsp:setProperty name="odeslatKomentar" property="komentar" value="${komentar}"/>
1.46
1.47 - <c:choose>
1.48 - <c:when test="${odeslatKomentar.ok}">
1.49 - <p class="informacniHlaska">
1.50 - <fmt:message key="komentar.odeslat.ok"/>,
1.51 - <a href="?akce=detail&amp;podnik=${komentar.podnik}">
1.52 - <fmt:message key="komentar.odeslat.pokracujte"/>
1.53 - </a>.
1.54 - </p>
1.55 - </c:when>
1.56 - <c:otherwise>
1.57 - <p class="chybovaHlaska"><fmt:message key="komentar.odeslat.chyba"/></p>
1.58 - </c:otherwise>
1.59 - </c:choose>
1.60 + <c:choose>
1.61 + <c:when test="${odeslatKomentar.ok}">
1.62 + <p class="informacniHlaska">
1.63 + <fmt:message key="komentar.odeslat.ok"/>,
1.64 + <a href="?akce=detail&amp;podnik=${komentar.podnik}">
1.65 + <fmt:message key="komentar.odeslat.pokracujte"/>
1.66 + </a>.
1.67 + </p>
1.68 + </c:when>
1.69 + <c:otherwise>
1.70 + <p class="chybovaHlaska"><fmt:message key="komentar.odeslat.chyba"/></p>
1.71 + </c:otherwise>
1.72 + </c:choose>
1.73
1.74 -
1.75 -
1.76 -
1.77 - </nk:stranka>
1.78 -
1.79 + </nk:stranka>
1.80 </jsp:root>