java/nekurak.net-web/web/index.jsp
author František Kučera <franta-hg@frantovo.cz>
Tue, 08 Jun 2010 09:09:17 +0200
changeset 130 1bbff3f5181f
parent 74 aec1fb81580e
child 145 0efefbf5f8b6
permissions -rw-r--r--
komentáře – escapování a EJB
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' &amp;&amp; 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@130
    43
	<c:when test="${param.akce == 'odeslatKomentar'}">
franta-hg@130
    44
	    <jsp:include page="/WEB-INF/casti/odeslatKomentar.jsp" flush="false"/>
franta-hg@130
    45
	</c:when>
franta-hg@73
    46
	<c:otherwise>
franta-hg@73
    47
	    <jsp:include page="/WEB-INF/casti/uvod.jsp" flush="false"/>
franta-hg@73
    48
	</c:otherwise>
franta-hg@73
    49
    </c:choose>
franta-hg@73
    50
    <!-- </výběrStránky> -->
franta-hg@3
    51
franta-hg@3
    52
</jsp:root>