author | František Kučera <franta-hg@frantovo.cz> |
Sat, 15 Jan 2011 01:12:36 +0100 | |
changeset 171 | e619057bad66 |
parent 145 | 0efefbf5f8b6 |
child 179 | 2ed9f3231a28 |
permissions | -rw-r--r-- |
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@145 | 3 |
xmlns:c="http://java.sun.com/jsp/jstl/core" |
franta-hg@145 | 4 |
xmlns:fmt="http://java.sun.com/jsp/jstl/fmt" |
franta-hg@145 | 5 |
xmlns:fn="http://java.sun.com/jsp/jstl/functions" |
franta-hg@145 | 6 |
xmlns:nk="urn:jsptagdir:/WEB-INF/tags/nekurak" |
franta-hg@145 | 7 |
version="2.0"> |
franta-hg@130 | 8 |
|
franta-hg@145 | 9 |
<jsp:useBean id="odeslatKomentar" class="cz.frantovo.nekurak.web.OdeslatKomentar" scope="request"/> |
franta-hg@145 | 10 |
<jsp:useBean id="komentar" class="cz.frantovo.nekurak.dto.Komentar" scope="request"/> |
franta-hg@130 | 11 |
|
franta-hg@145 | 12 |
<!-- |
franta-hg@145 | 13 |
Přijímá komentáře odeslané jako klasický HTTP formulář. |
franta-hg@145 | 14 |
AJAXové komentáře se zpracovávají servletem. |
franta-hg@145 | 15 |
TODO: sloučit do servletu |
franta-hg@145 | 16 |
--> |
franta-hg@130 | 17 |
|
franta-hg@145 | 18 |
<fmt:message key="komentar.odeslat.nadpis" var="titulekStranky"/> |
franta-hg@145 | 19 |
<nk:stranka titulek="${titulekStranky}"> |
franta-hg@130 | 20 |
|
franta-hg@145 | 21 |
<h1><c:out value="${titulekStranky}"/></h1> |
franta-hg@130 | 22 |
|
franta-hg@145 | 23 |
<jsp:setProperty name="komentar" property="podnik" value="${param.podnik}"/> |
franta-hg@145 | 24 |
<jsp:setProperty name="komentar" property="nadpis" value="${param.nadpis}"/> |
franta-hg@145 | 25 |
<jsp:setProperty name="komentar" property="komentar" value="${param.komentar}"/> |
franta-hg@145 | 26 |
<jsp:setProperty name="komentar" property="typ" value="${param.typ}"/> |
franta-hg@145 | 27 |
<jsp:setProperty name="odeslatKomentar" property="komentar" value="${komentar}"/> |
franta-hg@130 | 28 |
|
franta-hg@145 | 29 |
<c:choose> |
franta-hg@145 | 30 |
<c:when test="${odeslatKomentar.ok}"> |
franta-hg@145 | 31 |
<p class="informacniHlaska"> |
franta-hg@145 | 32 |
<fmt:message key="komentar.odeslat.ok"/>, |
franta-hg@145 | 33 |
<a href="?akce=detail&amp;podnik=${komentar.podnik}"> |
franta-hg@145 | 34 |
<fmt:message key="komentar.odeslat.pokracujte"/> |
franta-hg@145 | 35 |
</a>. |
franta-hg@145 | 36 |
</p> |
franta-hg@145 | 37 |
</c:when> |
franta-hg@145 | 38 |
<c:otherwise> |
franta-hg@145 | 39 |
<p class="chybovaHlaska"><fmt:message key="komentar.odeslat.chyba"/></p> |
franta-hg@145 | 40 |
</c:otherwise> |
franta-hg@145 | 41 |
</c:choose> |
franta-hg@132 | 42 |
|
franta-hg@145 | 43 |
</nk:stranka> |
franta-hg@130 | 44 |
</jsp:root> |