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"
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"/>
13 <c:when test="${param.odhlasit == 'ano'}">
14 <p><fmt:message key="prihlaseni.odhlaseniUspesne"/></p>
17 <h1><fmt:message key="prihlaseni.nadpis"/></h1>
18 <p><fmt:message key="prihlaseni.zadejte"/></p>
20 <c:if test="${param.chyba == 'ano'}">
21 <p class="chybovaHlaska"><fmt:message key="prihlaseni.chyba"/></p>
24 <form method="post" action="j_security_check">
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>