java/nekurak.net-web/web/WEB-INF/casti/prihlaseni.jsp
changeset 73 34c7eb5f2fae
parent 53 d76be0124c40
child 145 0efefbf5f8b6
     1.1 --- a/java/nekurak.net-web/web/WEB-INF/casti/prihlaseni.jsp	Thu Mar 04 22:42:23 2010 +0100
     1.2 +++ b/java/nekurak.net-web/web/WEB-INF/casti/prihlaseni.jsp	Thu Mar 18 14:22:16 2010 +0100
     1.3 @@ -3,34 +3,36 @@
     1.4  	  xmlns:c="http://java.sun.com/jsp/jstl/core"
     1.5  	  xmlns:fmt="http://java.sun.com/jsp/jstl/fmt"
     1.6  	  xmlns:fn="http://java.sun.com/jsp/jstl/functions"
     1.7 +	  xmlns:nk="urn:jsptagdir:/WEB-INF/tags/nekurak"
     1.8  	  version="2.0">
     1.9  
    1.10 -    <jsp:useBean id="podnik" class="cz.frantovo.nekurak.dto.Podnik" scope="request"/>
    1.11 -    <jsp:useBean id="pridatPodnik" class="cz.frantovo.nekurak.web.PridatPodnik" scope="request"/>
    1.12 -
    1.13 -
    1.14      <c:choose>
    1.15  	<c:when test="${param.odhlasit == 'ano'}">
    1.16 -	    <p><fmt:message key="prihlaseni.odhlaseniUspesne"/></p>
    1.17 +	    <fmt:message key="prihlaseni.nadpis.odhlaseni" var="titulekStranky"/>
    1.18 +	    <nk:stranka titulek="${titulekStranky}">
    1.19 +		<p><fmt:message key="prihlaseni.odhlaseniUspesne"/></p>
    1.20 +	    </nk:stranka>
    1.21  	</c:when>
    1.22  	<c:otherwise>
    1.23 -	    <h1><fmt:message key="prihlaseni.nadpis"/></h1>
    1.24 -	    <p><fmt:message key="prihlaseni.zadejte"/></p>
    1.25 +	    <fmt:message key="prihlaseni.nadpis" var="titulekStranky"/>
    1.26 +	    <nk:stranka titulek="${titulekStranky}">
    1.27 +		<h1><c:out value="${titulekStranky}"/></h1>
    1.28 +		<p><fmt:message key="prihlaseni.zadejte"/></p>
    1.29  
    1.30 -	    <c:if test="${param.chyba == 'ano'}">
    1.31 -		<p class="chybovaHlaska"><fmt:message key="prihlaseni.chyba"/></p>
    1.32 -	    </c:if>
    1.33 +		<c:if test="${param.chyba == 'ano'}">
    1.34 +		    <p class="chybovaHlaska"><fmt:message key="prihlaseni.chyba"/></p>
    1.35 +		</c:if>
    1.36  
    1.37 -	    <form method="post" action="j_security_check">
    1.38 -		<fieldset>
    1.39 -		    <label><fmt:message key="prihlaseni.jmeno"/>: <input type="text" name="j_username"/></label><br/>
    1.40 -		    <label><fmt:message key="prihlaseni.heslo"/>: <input type="password" name="j_password"/></label><br/>
    1.41 -		    <button value="submit"><fmt:message key="prihlaseni.tlacitko"/></button>
    1.42 -		</fieldset>
    1.43 -	    </form>
    1.44 +		<form method="post" action="j_security_check">
    1.45 +		    <fieldset>
    1.46 +			<label><fmt:message key="prihlaseni.jmeno"/>: <input type="text" name="j_username"/></label><br/>
    1.47 +			<label><fmt:message key="prihlaseni.heslo"/>: <input type="password" name="j_password"/></label><br/>
    1.48 +			<button value="submit"><fmt:message key="prihlaseni.tlacitko"/></button>
    1.49 +		    </fieldset>
    1.50 +		</form>
    1.51 +	    </nk:stranka>
    1.52  	</c:otherwise>
    1.53      </c:choose>
    1.54  
    1.55  
    1.56 -
    1.57  </jsp:root>