diff --git a/spring-security-login/pom.xml b/spring-security-login/pom.xml index 5f11ca9821..48ad538807 100644 --- a/spring-security-login/pom.xml +++ b/spring-security-login/pom.xml @@ -1,175 +1,179 @@ - - 4.0.0 - org.baeldung - spring-security-login - 0.1-SNAPSHOT + + 4.0.0 + org.baeldung + spring-security-login + 0.1-SNAPSHOT - spring-security-login - war + spring-security-login + war - + - + - - org.springframework.security - spring-security-web - ${org.springframework.security.version} - - - org.springframework.security - spring-security-config - ${org.springframework.security.version} - + + org.springframework.security + spring-security-web + ${org.springframework.security.version} + + + org.springframework.security + spring-security-config + ${org.springframework.security.version} + + + org.springframework.security + spring-security-taglibs + ${org.springframework.security.version} + - + - - org.springframework - spring-core - ${org.springframework.version} - - - org.springframework - spring-context - ${org.springframework.version} - - - org.springframework - spring-jdbc - ${org.springframework.version} - - - org.springframework - spring-beans - ${org.springframework.version} - - - org.springframework - spring-aop - ${org.springframework.version} - - - org.springframework - spring-tx - ${org.springframework.version} - - - org.springframework - spring-expression - ${org.springframework.version} - + + org.springframework + spring-core + ${org.springframework.version} + + + org.springframework + spring-context + ${org.springframework.version} + + + org.springframework + spring-jdbc + ${org.springframework.version} + + + org.springframework + spring-beans + ${org.springframework.version} + + + org.springframework + spring-aop + ${org.springframework.version} + + + org.springframework + spring-tx + ${org.springframework.version} + + + org.springframework + spring-expression + ${org.springframework.version} + - - org.springframework - spring-web - ${org.springframework.version} - - - org.springframework - spring-webmvc - ${org.springframework.version} - + + org.springframework + spring-web + ${org.springframework.version} + + + org.springframework + spring-webmvc + ${org.springframework.version} + - + - - javax.servlet - javax.servlet-api - 3.0.1 - provided - + + javax.servlet + javax.servlet-api + 3.0.1 + provided + - - javax.servlet - jstl - 1.2 - runtime - + + javax.servlet + jstl + 1.2 + runtime + - + - - junit - junit-dep - ${junit.version} - test - + + junit + junit-dep + ${junit.version} + test + - - org.hamcrest - hamcrest-core - ${org.hamcrest.version} - test - - - org.hamcrest - hamcrest-library - ${org.hamcrest.version} - test - + + org.hamcrest + hamcrest-core + ${org.hamcrest.version} + test + + + org.hamcrest + hamcrest-library + ${org.hamcrest.version} + test + - - org.mockito - mockito-core - ${mockito.version} - test - + + org.mockito + mockito-core + ${mockito.version} + test + - + - - spring-security-login - - - src/main/resources - true - - + + spring-security-login + + + src/main/resources + true + + - + - - org.apache.maven.plugins - maven-surefire-plugin + + org.apache.maven.plugins + maven-surefire-plugin ${maven-surefire-plugin.version} - - - - - - - - - + + + + + + + + + - - org.codehaus.cargo - cargo-maven2-plugin + + org.codehaus.cargo + cargo-maven2-plugin ${cargo-maven2-plugin.version} - - true - - jetty8x - embedded - - - - - - - 8082 - - - - + + true + + jetty8x + embedded + + + + + + + 8082 + + + + - + - + - + 3.2.3.RELEASE 3.1.4.RELEASE diff --git a/spring-security-login/src/main/webapp/WEB-INF/view/homepage.jsp b/spring-security-login/src/main/webapp/WEB-INF/view/homepage.jsp index 5504d2f134..93f9dc2fbd 100644 --- a/spring-security-login/src/main/webapp/WEB-INF/view/homepage.jsp +++ b/spring-security-login/src/main/webapp/WEB-INF/view/homepage.jsp @@ -1,9 +1,22 @@ <%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%> +<%@ taglib prefix="security" uri="http://www.springframework.org/security/tags" %>

This is the body of the sample view

+ + + This text is only visible to a user +
+
+ + + This text is only visible to an admin +
+
+ ">Logout + \ No newline at end of file