java/nekurak.net-web/web/WEB-INF/casti/odeslatKomentar.jsp
author František Kučera <franta-hg@frantovo.cz>
Wed Jun 09 15:51:41 2010 +0200 (2010-06-09)
changeset 136 230bd05dcfec
parent 133 2acdbc74bc24
child 142 44ef544460ca
permissions -rw-r--r--
PHP služba – Texy, HTTP API
franta-hg@130
     1
<?xml version="1.0" encoding="UTF-8"?>
franta-hg@130
     2
<jsp:root xmlns:jsp="http://java.sun.com/JSP/Page"
franta-hg@130
     3
	  xmlns:c="http://java.sun.com/jsp/jstl/core"
franta-hg@130
     4
	  xmlns:fmt="http://java.sun.com/jsp/jstl/fmt"
franta-hg@130
     5
	  xmlns:fn="http://java.sun.com/jsp/jstl/functions"
franta-hg@130
     6
	  xmlns:nk="urn:jsptagdir:/WEB-INF/tags/nekurak"
franta-hg@130
     7
	  version="2.0">
franta-hg@130
     8
franta-hg@130
     9
    <jsp:useBean id="odeslatKomentar" class="cz.frantovo.nekurak.web.OdeslatKomentar" scope="request"/>
franta-hg@130
    10
    <jsp:useBean id="komentar" class="cz.frantovo.nekurak.dto.Komentar" scope="request"/>
franta-hg@130
    11
franta-hg@130
    12
franta-hg@130
    13
    <fmt:message key="komentar.odeslat.nadpis" var="titulekStranky"/>
franta-hg@130
    14
    <nk:stranka titulek="${titulekStranky}">
franta-hg@130
    15
franta-hg@130
    16
	<h1><c:out value="${titulekStranky}"/></h1>
franta-hg@130
    17
franta-hg@130
    18
	<jsp:setProperty name="komentar" property="podnik" value="${param.podnik}"/>
franta-hg@130
    19
	<jsp:setProperty name="komentar" property="nadpis" value="${param.nadpis}"/>
franta-hg@130
    20
	<jsp:setProperty name="komentar" property="komentar" value="${param.komentar}"/>
franta-hg@130
    21
	<jsp:setProperty name="komentar" property="typ" value="${param.typ}"/>
franta-hg@130
    22
	<jsp:setProperty name="odeslatKomentar" property="komentar" value="${komentar}"/>
franta-hg@130
    23
franta-hg@132
    24
	<c:choose>
franta-hg@132
    25
	    <c:when test="${odeslatKomentar.ok}">
franta-hg@134
    26
		<p class="informacniHlaska">
franta-hg@132
    27
		    <fmt:message key="komentar.odeslat.ok"/>,
franta-hg@132
    28
		    <a href="?akce=detail&amp;amp;podnik=${komentar.podnik}"><fmt:message key="komentar.odeslat.pokracujte"/></a>.
franta-hg@132
    29
		</p>
franta-hg@132
    30
	    </c:when>
franta-hg@132
    31
	    <c:otherwise>
franta-hg@133
    32
		<p class="chybovaHlaska"><fmt:message key="komentar.odeslat.chyba"/></p>
franta-hg@132
    33
	    </c:otherwise>
franta-hg@132
    34
	</c:choose>
franta-hg@132
    35
franta-hg@132
    36
franta-hg@130
    37
franta-hg@130
    38
franta-hg@130
    39
    </nk:stranka>
franta-hg@130
    40
franta-hg@130
    41
</jsp:root>