java/nekurak.net-web/web/WEB-INF/casti/odeslatKomentar.jsp
author František Kučera <franta-hg@frantovo.cz>
Sat Jun 19 14:00:11 2010 +0200 (2010-06-19)
changeset 143 91c4282ea15f
parent 134 4bd1e353c527
child 145 0efefbf5f8b6
permissions -rw-r--r--
doladění CSS pro lidi bez JS
     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 class="informacniHlaska">
    27 		    <fmt:message key="komentar.odeslat.ok"/>,
    28 		    <a href="?akce=detail&amp;amp;podnik=${komentar.podnik}">
    29 			<fmt:message key="komentar.odeslat.pokracujte"/>
    30 		    </a>.
    31 		</p>
    32 	    </c:when>
    33 	    <c:otherwise>
    34 		<p class="chybovaHlaska"><fmt:message key="komentar.odeslat.chyba"/></p>
    35 	    </c:otherwise>
    36 	</c:choose>
    37 
    38 
    39 
    40 
    41     </nk:stranka>
    42 
    43 </jsp:root>