forked from eugenp/tutorials
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
57 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%> | ||
<%@ page session="true"%> | ||
<%@taglib uri="http://www.springframework.org/tags" prefix="spring"%> | ||
<html> | ||
|
||
<head> | ||
<link href="<c:url value="/resources/bootstrap.css" />" rel="stylesheet"> | ||
<title><spring:message code="label.pages.home.title"></spring:message></title> | ||
</head> | ||
<body> | ||
<div class="container"> | ||
<div class="span12"> | ||
<h1> | ||
<spring:message code="label.pages.home.message"></spring:message> | ||
</h1> | ||
<a href="<c:url value="/j_spring_security_logout" />"><spring:message | ||
code="label.pages.logout"></spring:message></a> | ||
</div> | ||
</div> | ||
</body> | ||
|
||
</html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%> | ||
<%@ taglib prefix="sec" | ||
uri="http://www.springframework.org/security/tags"%> | ||
<%@taglib uri="http://www.springframework.org/tags" prefix="spring"%> | ||
<%@ page session="true"%> | ||
<html> | ||
<head> | ||
<link href="<c:url value="/resources/bootstrap.css" />" rel="stylesheet"> | ||
<title><spring:message code="label.pages.home.title"></spring:message></title> | ||
</head> | ||
<body> | ||
|
||
<div class="container"> | ||
|
||
<div class="span12"> | ||
<sec:authorize access="hasRole('ROLE_USER')"> | ||
<spring:message code="label.pages.user.message"></spring:message> | ||
<br /> | ||
</sec:authorize> | ||
|
||
<sec:authorize access="hasRole('ROLE_ADMIN')"> | ||
<spring:message code="label.pages.admin.message"></spring:message> | ||
<br /> | ||
</sec:authorize> | ||
${param.user} | ||
<a href="<c:url value="/j_spring_security_logout" />"><spring:message | ||
code="label.pages.logout"></spring:message></a> <a | ||
href="<c:url value="/home.html" />"><spring:message | ||
code="label.pages.home.title"></spring:message></a> <a | ||
href="<c:url value="/admin.html" />"><spring:message | ||
code="label.pages.admin"></spring:message></a> | ||
</div> | ||
</div> | ||
</body> | ||
</html> |