java/nekurak.net-web/web/WEB-INF/casti/prihlaseni.jsp
author František Kučera <franta-hg@frantovo.cz>
Fri Mar 05 10:28:34 2010 +0100 (2010-03-05)
changeset 55 079a3221355d
parent 42 77c8271add7d
child 73 34c7eb5f2fae
permissions -rw-r--r--
Oddělení požadavku na registraci od samotného uživatele.
Robustnější návrh.
     1 <?xml version="1.0" encoding="UTF-8"?>
     2 <jsp:root xmlns:jsp="http://java.sun.com/JSP/Page"
     3 	  xmlns:c="http://java.sun.com/jsp/jstl/core"
     4 	  xmlns:fmt="http://java.sun.com/jsp/jstl/fmt"
     5 	  xmlns:fn="http://java.sun.com/jsp/jstl/functions"
     6 	  version="2.0">
     7 
     8     <jsp:useBean id="podnik" class="cz.frantovo.nekurak.dto.Podnik" scope="request"/>
     9     <jsp:useBean id="pridatPodnik" class="cz.frantovo.nekurak.web.PridatPodnik" scope="request"/>
    10 
    11 
    12     <c:choose>
    13 	<c:when test="${param.odhlasit == 'ano'}">
    14 	    <p><fmt:message key="prihlaseni.odhlaseniUspesne"/></p>
    15 	</c:when>
    16 	<c:otherwise>
    17 	    <h1><fmt:message key="prihlaseni.nadpis"/></h1>
    18 	    <p><fmt:message key="prihlaseni.zadejte"/></p>
    19 
    20 	    <c:if test="${param.chyba == 'ano'}">
    21 		<p class="chybovaHlaska"><fmt:message key="prihlaseni.chyba"/></p>
    22 	    </c:if>
    23 
    24 	    <form method="post" action="j_security_check">
    25 		<fieldset>
    26 		    <label><fmt:message key="prihlaseni.jmeno"/>: <input type="text" name="j_username"/></label><br/>
    27 		    <label><fmt:message key="prihlaseni.heslo"/>: <input type="password" name="j_password"/></label><br/>
    28 		    <button value="submit"><fmt:message key="prihlaseni.tlacitko"/></button>
    29 		</fieldset>
    30 	    </form>
    31 	</c:otherwise>
    32     </c:choose>
    33 
    34 
    35 
    36 </jsp:root>