cleanup work for registrationg
This commit is contained in:
parent
b30114fc26
commit
039d3c0af3
@ -9,10 +9,7 @@
|
|||||||
<link href="<c:url value="/resources/bootstrap.css" />" rel="stylesheet">
|
<link href="<c:url value="/resources/bootstrap.css" />" rel="stylesheet">
|
||||||
</head>
|
</head>
|
||||||
|
|
||||||
|
|
||||||
<body>
|
<body>
|
||||||
|
|
||||||
<head></head>
|
|
||||||
<sec:authorize ifAnyGranted="ROLE_ADMIN">
|
<sec:authorize ifAnyGranted="ROLE_ADMIN">
|
||||||
<H1>Hello Admin</H1>
|
<H1>Hello Admin</H1>
|
||||||
</sec:authorize>
|
</sec:authorize>
|
||||||
|
@ -1,6 +1,7 @@
|
|||||||
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
|
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
|
||||||
<%@ taglib prefix="security" uri="http://www.springframework.org/security/tags"%>
|
<%@ taglib prefix="security" uri="http://www.springframework.org/security/tags"%>
|
||||||
<html>
|
<html>
|
||||||
|
|
||||||
<head>
|
<head>
|
||||||
<link href="<c:url value="/resources/bootstrap.css" />" rel="stylesheet">
|
<link href="<c:url value="/resources/bootstrap.css" />" rel="stylesheet">
|
||||||
</head>
|
</head>
|
||||||
@ -20,6 +21,6 @@
|
|||||||
|
|
||||||
<a href="<c:url value="/j_spring_security_logout" />">Logout</a>
|
<a href="<c:url value="/j_spring_security_logout" />">Logout</a>
|
||||||
<a href="<c:url value="/admin.html" />">Administrator Page</a>
|
<a href="<c:url value="/admin.html" />">Administrator Page</a>
|
||||||
|
|
||||||
</body>
|
</body>
|
||||||
|
|
||||||
</html>
|
</html>
|
@ -1,14 +1,14 @@
|
|||||||
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
|
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
|
||||||
<%@ page session="true"%>
|
<%@ page session="true"%>
|
||||||
<html>
|
<html>
|
||||||
|
|
||||||
<head>
|
<head>
|
||||||
<link href="<c:url value="/resources/bootstrap.css" />" rel="stylesheet">
|
<link href="<c:url value="/resources/bootstrap.css" />" rel="stylesheet">
|
||||||
<title>Home</title>
|
<title>Home</title>
|
||||||
</head>
|
</head>
|
||||||
<body>
|
|
||||||
<h1>
|
|
||||||
Welcome back home!
|
|
||||||
</h1>
|
|
||||||
|
|
||||||
|
<body>
|
||||||
|
<h1>Welcome back home!</h1>
|
||||||
</body>
|
</body>
|
||||||
|
|
||||||
</html>
|
</html>
|
||||||
|
@ -6,7 +6,6 @@
|
|||||||
<link href="<c:url value="/resources/bootstrap.css" />" rel="stylesheet">
|
<link href="<c:url value="/resources/bootstrap.css" />" rel="stylesheet">
|
||||||
</head>
|
</head>
|
||||||
|
|
||||||
<body>
|
|
||||||
<body>
|
<body>
|
||||||
<h1>This is the homepage for the user</h1>
|
<h1>This is the homepage for the user</h1>
|
||||||
|
|
||||||
@ -23,8 +22,6 @@
|
|||||||
<a href="<c:url value="/j_spring_security_logout" />">Logout</a>
|
<a href="<c:url value="/j_spring_security_logout" />">Logout</a>
|
||||||
<a href="<c:url value="/home.html" />">Home</a>
|
<a href="<c:url value="/home.html" />">Home</a>
|
||||||
<a href="<c:url value="/admin.html" />">Administrator Page</a>
|
<a href="<c:url value="/admin.html" />">Administrator Page</a>
|
||||||
|
|
||||||
</body>
|
</body>
|
||||||
|
|
||||||
</body>
|
|
||||||
</html>
|
</html>
|
@ -5,10 +5,11 @@
|
|||||||
<link href="<c:url value="/resources/bootstrap.css" />" rel="stylesheet">
|
<link href="<c:url value="/resources/bootstrap.css" />" rel="stylesheet">
|
||||||
<title>Home</title>
|
<title>Home</title>
|
||||||
</head>
|
</head>
|
||||||
|
|
||||||
<body>
|
<body>
|
||||||
<h1 class="alert alert-error">
|
<h1 class="alert alert-error">
|
||||||
<spring:message code="message.sessionExpired"></spring:message>
|
<spring:message code="message.sessionExpired"></spring:message>
|
||||||
</h1>
|
</h1>
|
||||||
|
|
||||||
</body>
|
</body>
|
||||||
|
|
||||||
</html>
|
</html>
|
||||||
|
@ -1,6 +1,5 @@
|
|||||||
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
|
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
|
||||||
<%@ taglib prefix="sec"
|
<%@ taglib prefix="sec" uri="http://www.springframework.org/security/tags"%>
|
||||||
uri="http://www.springframework.org/security/tags"%>
|
|
||||||
<%@taglib uri="http://www.springframework.org/tags" prefix="spring"%>
|
<%@taglib uri="http://www.springframework.org/tags" prefix="spring"%>
|
||||||
<%@ taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt"%>
|
<%@ taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt"%>
|
||||||
<fmt:setBundle basename="messages" />
|
<fmt:setBundle basename="messages" />
|
||||||
@ -9,6 +8,7 @@
|
|||||||
<fmt:message key="message.password" var="noPass" />
|
<fmt:message key="message.password" var="noPass" />
|
||||||
<fmt:message key="message.username" var="noUser" />
|
<fmt:message key="message.username" var="noUser" />
|
||||||
<html>
|
<html>
|
||||||
|
|
||||||
<head>
|
<head>
|
||||||
<link href="<c:url value="/resources/bootstrap.css" />" rel="stylesheet">
|
<link href="<c:url value="/resources/bootstrap.css" />" rel="stylesheet">
|
||||||
<c:if test="${param.error != null}">
|
<c:if test="${param.error != null}">
|
||||||
@ -29,7 +29,6 @@
|
|||||||
document.f.j_username.focus();
|
document.f.j_username.focus();
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (document.f.j_password.value == "") {
|
if (document.f.j_password.value == "") {
|
||||||
alert("${noPass}");
|
alert("${noPass}");
|
||||||
document.f.j_password.focus();
|
document.f.j_password.focus();
|
||||||
@ -43,8 +42,7 @@
|
|||||||
<h1>Login</h1>
|
<h1>Login</h1>
|
||||||
<a href="?lang=en">English</a> |
|
<a href="?lang=en">English</a> |
|
||||||
<a href="?lang=es_ES">Spanish</a>
|
<a href="?lang=es_ES">Spanish</a>
|
||||||
<form name='f' action="j_spring_security_check" method='POST'
|
<form name='f' action="j_spring_security_check" method='POST' onsubmit="return validate();">
|
||||||
onsubmit="return validate();">
|
|
||||||
|
|
||||||
<table>
|
<table>
|
||||||
<tr>
|
<tr>
|
||||||
@ -64,6 +62,6 @@
|
|||||||
<br> Current Locale : ${pageContext.response.locale}
|
<br> Current Locale : ${pageContext.response.locale}
|
||||||
<br>
|
<br>
|
||||||
<a href="<c:url value="/user/registration" />">Sign Up</a>
|
<a href="<c:url value="/user/registration" />">Sign Up</a>
|
||||||
|
|
||||||
</body>
|
</body>
|
||||||
|
|
||||||
</html>
|
</html>
|
@ -1,9 +1,9 @@
|
|||||||
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
|
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
|
||||||
<%@ taglib prefix="sec"
|
<%@ taglib prefix="sec" uri="http://www.springframework.org/security/tags"%>
|
||||||
uri="http://www.springframework.org/security/tags"%>
|
|
||||||
<%@taglib uri="http://www.springframework.org/tags" prefix="spring"%>
|
<%@taglib uri="http://www.springframework.org/tags" prefix="spring"%>
|
||||||
|
|
||||||
<html>
|
<html>
|
||||||
|
|
||||||
<head>
|
<head>
|
||||||
<link href="<c:url value="/resources/bootstrap.css" />" rel="stylesheet">
|
<link href="<c:url value="/resources/bootstrap.css" />" rel="stylesheet">
|
||||||
<c:if test="${not empty SPRING_SECURITY_LAST_EXCEPTION}">
|
<c:if test="${not empty SPRING_SECURITY_LAST_EXCEPTION}">
|
||||||
@ -19,8 +19,10 @@
|
|||||||
<meta http-equiv="Content-Type" content="text/html; charset=US-ASCII">
|
<meta http-equiv="Content-Type" content="text/html; charset=US-ASCII">
|
||||||
<title>Logged Out</title>
|
<title>Logged Out</title>
|
||||||
</head>
|
</head>
|
||||||
|
|
||||||
<body>
|
<body>
|
||||||
|
|
||||||
<a href="login.html">Login</a>
|
<a href="login.html">Login</a>
|
||||||
</body>
|
</body>
|
||||||
|
|
||||||
</html>
|
</html>
|
@ -11,6 +11,7 @@
|
|||||||
<meta http-equiv="Content-Type" content="text/html; charset=US-ASCII">
|
<meta http-equiv="Content-Type" content="text/html; charset=US-ASCII">
|
||||||
<title>Registration</title>
|
<title>Registration</title>
|
||||||
</head>
|
</head>
|
||||||
|
|
||||||
<body>
|
<body>
|
||||||
<H1>This is the registration page</H1>
|
<H1>This is the registration page</H1>
|
||||||
<form:form modelAttribute="user" method="POST" enctype="utf8" role="form">
|
<form:form modelAttribute="user" method="POST" enctype="utf8" role="form">
|
||||||
@ -41,4 +42,5 @@
|
|||||||
<br>
|
<br>
|
||||||
<a href="<c:url value="login.html" />">Back to Login</a>
|
<a href="<c:url value="login.html" />">Back to Login</a>
|
||||||
</body>
|
</body>
|
||||||
|
|
||||||
</html>
|
</html>
|
@ -1,20 +1,23 @@
|
|||||||
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
|
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
|
||||||
<%@ taglib prefix="sec"
|
<%@ taglib prefix="sec" uri="http://www.springframework.org/security/tags"%>
|
||||||
uri="http://www.springframework.org/security/tags"%>
|
|
||||||
<%@taglib uri="http://www.springframework.org/tags" prefix="spring"%>
|
<%@taglib uri="http://www.springframework.org/tags" prefix="spring"%>
|
||||||
<%@ taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt"%>
|
<%@ taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt"%>
|
||||||
<fmt:setBundle basename="messages" />
|
<fmt:setBundle basename="messages" />
|
||||||
<%@ page session="true"%>
|
<%@ page session="true"%>
|
||||||
|
|
||||||
<html>
|
<html>
|
||||||
|
|
||||||
<head>
|
<head>
|
||||||
<link href="<c:url value="/resources/bootstrap.css" />" rel="stylesheet">
|
<link href="<c:url value="/resources/bootstrap.css" />" rel="stylesheet">
|
||||||
<meta http-equiv="Content-Type" content="text/html; charset=US-ASCII">
|
<meta http-equiv="Content-Type" content="text/html; charset=US-ASCII">
|
||||||
<title>Registration Success</title>
|
<title>Registration Success</title>
|
||||||
</head>
|
</head>
|
||||||
<body>
|
|
||||||
|
|
||||||
<h1> <spring:message code="message.regSucc"></spring:message> </h1>
|
<body>
|
||||||
|
<h1>
|
||||||
|
<spring:message code="message.regSucc"></spring:message>
|
||||||
|
</h1>
|
||||||
<a href="<c:url value="login.html" />"><spring:message code="label.login"></spring:message></a>
|
<a href="<c:url value="login.html" />"><spring:message code="label.login"></spring:message></a>
|
||||||
</body>
|
</body>
|
||||||
|
|
||||||
</html>
|
</html>
|
Loading…
x
Reference in New Issue
Block a user