java/nekurak.net-web/web/WEB-INF/casti/odeslatKomentar.jsp
author František Kučera <franta-hg@frantovo.cz>
Tue Jun 08 13:29:13 2010 +0200 (2010-06-08)
changeset 133 2acdbc74bc24
parent 132 1ca0d7fdbe51
child 134 4bd1e353c527
permissions -rw-r--r--
zalamování řádků
     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"
     7 	  version="2.0">
     8 
     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"/>
    11 
    12 
    13     <fmt:message key="komentar.odeslat.nadpis" var="titulekStranky"/>
    14     <nk:stranka titulek="${titulekStranky}">
    15 
    16 	<h1><c:out value="${titulekStranky}"/></h1>
    17 
    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}"/>
    23 
    24 	<c:choose>
    25 	    <c:when test="${odeslatKomentar.ok}">
    26 		<p>
    27 		    <fmt:message key="komentar.odeslat.ok"/>,
    28 		    <a href="?akce=detail&amp;amp;podnik=${komentar.podnik}"><fmt:message key="komentar.odeslat.pokracujte"/></a>.
    29 		</p>
    30 	    </c:when>
    31 	    <c:otherwise>
    32 		<p class="chybovaHlaska"><fmt:message key="komentar.odeslat.chyba"/></p>
    33 	    </c:otherwise>
    34 	</c:choose>
    35 
    36 
    37 
    38 
    39     </nk:stranka>
    40 
    41 </jsp:root>