java/nekurak.net-web/web/index.jsp
author František Kučera <franta-hg@frantovo.cz>
Wed Jun 30 00:26:14 2010 +0200 (2010-06-30)
changeset 149 8238cdb4113a
parent 145 0efefbf5f8b6
child 179 2ed9f3231a28
permissions -rw-r--r--
XMPP chat – první verze.
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@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:nk="urn:jsptagdir:/WEB-INF/tags/nekurak"
franta-hg@145
     6
		  version="2.0">
franta-hg@145
     7
	<jsp:directive.page contentType="application/xhtml+xml"/>
franta-hg@74
     8
franta-hg@145
     9
	<!-- <lokalizace> -->
franta-hg@145
    10
	<c:if test="${param.jazyk != null}">
franta-hg@145
    11
		<fmt:setLocale value="${param.jazyk}" scope="session"/>
franta-hg@145
    12
	</c:if>
franta-hg@145
    13
	<fmt:setBundle basename="cz.frantovo.nekurak.preklady" scope="application"/>
franta-hg@145
    14
	<!-- </lokalizace> -->
franta-hg@30
    15
franta-hg@145
    16
	<!-- <autentizace> -->
franta-hg@145
    17
	<c:set var="prihlasenyUzivatel" scope="request" value="${pageContext.request.userPrincipal.name}"/>
franta-hg@145
    18
	<c:if test="${param.akce == 'prihlaseni' &amp;&amp; param.odhlasit == 'ano'}">
franta-hg@145
    19
		<!--
franta-hg@145
    20
			Uživatele musíme odhlásit dřív, než vykreslíme nabídku,
franta-hg@145
    21
			která závisí na tom, zda je uživatel přihlášený nebo ne.
franta-hg@145
    22
			„prihlaseni.jsp?odhlasit=ano“ už vypíše jen hlášku, že byl odhlášen.
franta-hg@145
    23
		-->
franta-hg@145
    24
		<jsp:scriptlet>session.invalidate();</jsp:scriptlet>
franta-hg@145
    25
		<c:set var="prihlasenyUzivatel" scope="request" value="${null}"/>
franta-hg@145
    26
	</c:if>
franta-hg@145
    27
	<!-- </autentizace> -->
franta-hg@41
    28
franta-hg@145
    29
	<!-- <výběrStránky> -->
franta-hg@145
    30
	<c:choose>
franta-hg@145
    31
		<c:when test="${param.akce == 'detail'}">
franta-hg@145
    32
			<jsp:include page="/WEB-INF/casti/detail.jsp" flush="false"/>
franta-hg@145
    33
		</c:when>
franta-hg@145
    34
		<c:when test="${param.akce == 'pridatPodnik'}">
franta-hg@145
    35
			<jsp:include page="/WEB-INF/casti/pridatPodnik.jsp" flush="false"/>
franta-hg@145
    36
		</c:when>
franta-hg@145
    37
		<c:when test="${param.akce == 'registrovatUzivatele'}">
franta-hg@145
    38
			<jsp:include page="/WEB-INF/casti/registrovatUzivatele.jsp" flush="false"/>
franta-hg@145
    39
		</c:when>
franta-hg@145
    40
		<c:when test="${param.akce == 'prihlaseni'}">
franta-hg@145
    41
			<jsp:include page="/WEB-INF/casti/prihlaseni.jsp" flush="false"/>
franta-hg@145
    42
		</c:when>
franta-hg@145
    43
		<c:when test="${param.akce == 'odeslatKomentar'}">
franta-hg@145
    44
			<jsp:include page="/WEB-INF/casti/odeslatKomentar.jsp" flush="false"/>
franta-hg@145
    45
		</c:when>
franta-hg@149
    46
		<c:when test="${param.akce == 'chat'}">
franta-hg@149
    47
			<jsp:include page="/WEB-INF/casti/chat.jsp" flush="false"/>
franta-hg@149
    48
		</c:when>
franta-hg@145
    49
		<c:otherwise>
franta-hg@145
    50
			<jsp:include page="/WEB-INF/casti/uvod.jsp" flush="false"/>
franta-hg@145
    51
		</c:otherwise>
franta-hg@145
    52
	</c:choose>
franta-hg@145
    53
	<!-- </výběrStránky> -->
franta-hg@3
    54
franta-hg@3
    55
</jsp:root>