1+ <!DOCTYPE html>
2+ <%@ page contentType =" text/html;charset=UTF-8" language =" java" %>
3+ <%@ taglib prefix =" c" uri =" http://java.sun.com/jsp/jstl/core" %>
4+ <%@ taglib prefix =" form" uri =" http://www.springframework.org/tags/form" %>
5+ <%@ taglib prefix =" spring" uri =" http://www.springframework.org/tags" %>
6+ <%@ taglib prefix =" sec" uri =" http://www.springframework.org/security/tags" %>
7+ <%@ page session =" false" %>
8+ <c:if test =" ${ param. regSucc == 1 } " >
9+ <div id =" error" >
10+ <spring:message code =" message.regSucc" ></spring:message >
11+ </div >
12+ </c:if >
13+ <c:if test =" ${ param. regError == 1 } " >
14+
15+ <div id =" error" >
16+ <spring:message code =" message.regError" ></spring:message >
17+ <a href =" <c:url value=" /login " />" ><spring:message code =" label.login" ></spring:message ></a >
18+ </div >
19+
20+
21+ </c:if >
22+ <html >
23+ <head >
24+ <meta http-equiv =" Content-Type" content =" text/html; charset=US-ASCII" >
25+ <title >Registration</title >
26+ </head >
27+ <body >
28+ <H1 >This is the registration page</H1 >
29+ <form:form modelAttribute =" user" method =" POST" enctype =" utf8" role =" form" >
30+ <form:errors path =" lastError" cssClass =" fieldError" />
31+ <br >
32+ <tr >
33+ <td ><label >First Name:</label ></td >
34+ <td ><form:input path =" firstName" value =" " /></td >
35+ <form:errors path =" firstName" class =" errors" />
36+ </tr >
37+ <tr >
38+ <td ><label >Last Name:</label ></td >
39+ <td ><form:input path =" lastName" value =" " /></td >
40+ <form:errors path =" lastName" class =" errors" />
41+ </tr >
42+ <tr >
43+ <td ><label >Username (your e-mail address):</label ></td >
44+ <td ><form:input path =" username" value =" " /></td >
45+ <form:errors path =" username" class =" errors" />
46+ </tr >
47+ <tr >
48+ <td ><label >Password:</label ></td >
49+ <td ><form:input path =" password" value =" " /></td >
50+ <form:errors path =" password" class =" errors" />
51+ </tr >
52+ <input type =" hidden" name =" role" value =" 1" />
53+ <button type =" submit" >submit</button >
54+ </form:form >
55+ </body >
56+ </html >
0 commit comments