java/nekurak.net-web/web/WEB-INF/casti/prihlaseni.jsp
changeset 41 2c3451cc396c
child 42 77c8271add7d
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/java/nekurak.net-web/web/WEB-INF/casti/prihlaseni.jsp	Thu Feb 25 09:10:01 2010 +0100
     1.3 @@ -0,0 +1,36 @@
     1.4 +<?xml version="1.0" encoding="UTF-8"?>
     1.5 +<jsp:root xmlns:jsp="http://java.sun.com/JSP/Page"
     1.6 +	  xmlns:c="http://java.sun.com/jsp/jstl/core"
     1.7 +	  xmlns:fmt="http://java.sun.com/jsp/jstl/fmt"
     1.8 +	  xmlns:fn="http://java.sun.com/jsp/jstl/functions"
     1.9 +	  version="2.0">
    1.10 +
    1.11 +    <jsp:useBean id="podnik" class="cz.frantovo.nekurak.dto.Podnik" scope="request"/>
    1.12 +    <jsp:useBean id="pridatPodnik" class="cz.frantovo.nekurak.web.PridatPodnik" scope="request"/>
    1.13 +
    1.14 +
    1.15 +    <c:choose>
    1.16 +	<c:when test="${param.odhlasit == 'ano'}">
    1.17 +	    <p>Odhlášení proběhlo úspěšně</p>
    1.18 +	</c:when>
    1.19 +	<c:otherwise>
    1.20 +	    <h1>Přihlášení</h1>
    1.21 +	    <p>Zadejte jméno a heslo</p>
    1.22 +
    1.23 +	    <c:if test="${param.chyba == 'ano'}">
    1.24 +		<p>Nesprávné jméno nebo heslo, zkuste to prosím znovu.</p>
    1.25 +	    </c:if>
    1.26 +
    1.27 +	    <form method="post" action="j_security_check">
    1.28 +		<fieldset>
    1.29 +		    <label>Jméno: <input type="text" name="j_username"/></label><br/>
    1.30 +		    <label>Heslo: <input type="password" name="j_password"/></label><br/>
    1.31 +		    <button value="submit">Přihlásit se</button>
    1.32 +		</fieldset>
    1.33 +	    </form>
    1.34 +	</c:otherwise>
    1.35 +    </c:choose>
    1.36 +
    1.37 +
    1.38 +
    1.39 +</jsp:root>