1 <?xml version="1.0" encoding="UTF-8"?>
2 <jsp:root xmlns:jsp="http://java.sun.com/JSP/Page"
3 xmlns:c="http://java.sun.com/jsp/jstl/core"
4 xmlns:fmt="http://java.sun.com/jsp/jstl/fmt"
5 xmlns:fn="http://java.sun.com/jsp/jstl/functions"
6 xmlns:nk="urn:jsptagdir:/WEB-INF/tags/nekurak"
9 <jsp:useBean id="odeslatKomentar" class="cz.frantovo.nekurak.web.OdeslatKomentar" scope="request"/>
10 <jsp:useBean id="komentar" class="cz.frantovo.nekurak.dto.Komentar" scope="request"/>
13 <fmt:message key="komentar.odeslat.nadpis" var="titulekStranky"/>
14 <nk:stranka titulek="${titulekStranky}">
16 <h1><c:out value="${titulekStranky}"/></h1>
18 <jsp:setProperty name="komentar" property="podnik" value="${param.podnik}"/>
19 <jsp:setProperty name="komentar" property="nadpis" value="${param.nadpis}"/>
20 <jsp:setProperty name="komentar" property="komentar" value="${param.komentar}"/>
21 <jsp:setProperty name="komentar" property="typ" value="${param.typ}"/>
22 <jsp:setProperty name="odeslatKomentar" property="komentar" value="${komentar}"/>
25 <c:when test="${odeslatKomentar.ok}">
26 <p class="informacniHlaska">
27 <fmt:message key="komentar.odeslat.ok"/>,
28 <a href="?akce=detail&amp;podnik=${komentar.podnik}">
29 <fmt:message key="komentar.odeslat.pokracujte"/>
34 <p class="chybovaHlaska"><fmt:message key="komentar.odeslat.chyba"/></p>