franta-hg@3: <?xml version="1.0" encoding="UTF-8"?> franta-hg@10: <jsp:root xmlns:jsp="http://java.sun.com/JSP/Page" franta-hg@10: xmlns:c="http://java.sun.com/jsp/jstl/core" franta-hg@30: xmlns:fmt="http://java.sun.com/jsp/jstl/fmt" franta-hg@61: xmlns:nk="urn:jsptagdir:/WEB-INF/tags/nekurak" franta-hg@10: version="2.0"> franta-hg@3: <jsp:directive.page contentType="application/xhtml+xml"/> franta-hg@73: franta-hg@37: <!-- <lokalizace> --> franta-hg@37: <c:if test="${param.jazyk != null}"> franta-hg@42: <fmt:setLocale value="${param.jazyk}" scope="session"/> franta-hg@31: </c:if> franta-hg@30: <fmt:setBundle basename="cz.frantovo.nekurak.preklady" scope="application"/> franta-hg@37: <!-- </lokalizace> --> franta-hg@30: franta-hg@41: <!-- <autentizace> --> franta-hg@41: <c:set var="prihlasenyUzivatel" scope="request" value="${pageContext.request.userPrincipal.name}"/> franta-hg@41: <c:if test="${param.akce == 'prihlaseni' && param.odhlasit == 'ano'}"> franta-hg@41: <!-- franta-hg@41: Uživatele musíme odhlásit dřív, než vykreslíme nabídku, franta-hg@41: která závisí na tom, zda je uživatel přihlášený nebo ne. franta-hg@41: „prihlaseni.jsp?odhlasit=ano“ už vypíše jen hlášku, že byl odhlášen. franta-hg@41: --> franta-hg@41: <jsp:scriptlet>session.invalidate();</jsp:scriptlet> franta-hg@41: <c:set var="prihlasenyUzivatel" scope="request" value="${null}"/> franta-hg@41: </c:if> franta-hg@41: <!-- </autentizace> --> franta-hg@41: franta-hg@73: <!-- <výběrStránky> --> franta-hg@73: <c:choose> franta-hg@73: <c:when test="${param.akce == 'detail'}"> franta-hg@73: <jsp:include page="/WEB-INF/casti/detail.jsp" flush="false"/> franta-hg@73: </c:when> franta-hg@73: <c:when test="${param.akce == 'pridatPodnik'}"> franta-hg@73: <jsp:include page="/WEB-INF/casti/pridatPodnik.jsp" flush="false"/> franta-hg@73: </c:when> franta-hg@73: <c:when test="${param.akce == 'registrovatUzivatele'}"> franta-hg@73: <jsp:include page="/WEB-INF/casti/registrovatUzivatele.jsp" flush="false"/> franta-hg@73: </c:when> franta-hg@73: <c:when test="${param.akce == 'prihlaseni'}"> franta-hg@73: <jsp:include page="/WEB-INF/casti/prihlaseni.jsp" flush="false"/> franta-hg@73: </c:when> franta-hg@73: <c:otherwise> franta-hg@73: <jsp:include page="/WEB-INF/casti/uvod.jsp" flush="false"/> franta-hg@73: </c:otherwise> franta-hg@73: </c:choose> franta-hg@73: <!-- </výběrStránky> --> franta-hg@3: franta-hg@3: </jsp:root>