author | František Kučera <franta-hg@frantovo.cz> |
Mon Apr 12 10:50:39 2010 +0200 (2010-04-12) | |
changeset 98 | 75dec396f0e3 |
parent 73 | 34c7eb5f2fae |
child 130 | 1bbff3f5181f |
permissions | -rw-r--r-- |
franta-hg@3 | 1 |
<?xml version="1.0" encoding="UTF-8"?> |
franta-hg@10 | 2 |
<jsp:root xmlns:jsp="http://java.sun.com/JSP/Page" |
franta-hg@10 | 3 |
xmlns:c="http://java.sun.com/jsp/jstl/core" |
franta-hg@30 | 4 |
xmlns:fmt="http://java.sun.com/jsp/jstl/fmt" |
franta-hg@61 | 5 |
xmlns:nk="urn:jsptagdir:/WEB-INF/tags/nekurak" |
franta-hg@10 | 6 |
version="2.0"> |
franta-hg@3 | 7 |
<jsp:directive.page contentType="application/xhtml+xml"/> |
franta-hg@74 | 8 |
|
franta-hg@37 | 9 |
<!-- <lokalizace> --> |
franta-hg@37 | 10 |
<c:if test="${param.jazyk != null}"> |
franta-hg@42 | 11 |
<fmt:setLocale value="${param.jazyk}" scope="session"/> |
franta-hg@31 | 12 |
</c:if> |
franta-hg@30 | 13 |
<fmt:setBundle basename="cz.frantovo.nekurak.preklady" scope="application"/> |
franta-hg@37 | 14 |
<!-- </lokalizace> --> |
franta-hg@30 | 15 |
|
franta-hg@41 | 16 |
<!-- <autentizace> --> |
franta-hg@41 | 17 |
<c:set var="prihlasenyUzivatel" scope="request" value="${pageContext.request.userPrincipal.name}"/> |
franta-hg@41 | 18 |
<c:if test="${param.akce == 'prihlaseni' && param.odhlasit == 'ano'}"> |
franta-hg@41 | 19 |
<!-- |
franta-hg@41 | 20 |
Uživatele musíme odhlásit dřív, než vykreslíme nabídku, |
franta-hg@41 | 21 |
která závisí na tom, zda je uživatel přihlášený nebo ne. |
franta-hg@41 | 22 |
„prihlaseni.jsp?odhlasit=ano“ už vypíše jen hlášku, že byl odhlášen. |
franta-hg@41 | 23 |
--> |
franta-hg@41 | 24 |
<jsp:scriptlet>session.invalidate();</jsp:scriptlet> |
franta-hg@41 | 25 |
<c:set var="prihlasenyUzivatel" scope="request" value="${null}"/> |
franta-hg@41 | 26 |
</c:if> |
franta-hg@41 | 27 |
<!-- </autentizace> --> |
franta-hg@41 | 28 |
|
franta-hg@73 | 29 |
<!-- <výběrStránky> --> |
franta-hg@73 | 30 |
<c:choose> |
franta-hg@73 | 31 |
<c:when test="${param.akce == 'detail'}"> |
franta-hg@73 | 32 |
<jsp:include page="/WEB-INF/casti/detail.jsp" flush="false"/> |
franta-hg@73 | 33 |
</c:when> |
franta-hg@73 | 34 |
<c:when test="${param.akce == 'pridatPodnik'}"> |
franta-hg@73 | 35 |
<jsp:include page="/WEB-INF/casti/pridatPodnik.jsp" flush="false"/> |
franta-hg@73 | 36 |
</c:when> |
franta-hg@73 | 37 |
<c:when test="${param.akce == 'registrovatUzivatele'}"> |
franta-hg@73 | 38 |
<jsp:include page="/WEB-INF/casti/registrovatUzivatele.jsp" flush="false"/> |
franta-hg@73 | 39 |
</c:when> |
franta-hg@73 | 40 |
<c:when test="${param.akce == 'prihlaseni'}"> |
franta-hg@73 | 41 |
<jsp:include page="/WEB-INF/casti/prihlaseni.jsp" flush="false"/> |
franta-hg@73 | 42 |
</c:when> |
franta-hg@73 | 43 |
<c:otherwise> |
franta-hg@73 | 44 |
<jsp:include page="/WEB-INF/casti/uvod.jsp" flush="false"/> |
franta-hg@73 | 45 |
</c:otherwise> |
franta-hg@73 | 46 |
</c:choose> |
franta-hg@73 | 47 |
<!-- </výběrStránky> --> |
franta-hg@3 | 48 |
|
franta-hg@3 | 49 |
</jsp:root> |