O'Reilly logo

Spring Security 3.x Cookbook by Anjana Mankale

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Spring authentication with Wicket authorization

So far we have seen various options to use Spring Security outside the Wicket application. We shall now see how we can create a security form in the wicket framework and use it with the Spring framework with two different roles. The recipe also demonstrates how we can use Spring beans in the Wicket application.

Getting ready

  • Create a Maven Wicket project: spring-security-wicket.
  • Update the pom.xml file with Spring dependency.
  • Create an applicationContext.xml file. It's mandatory to name it as applicationContext or else we will get error messages in the console.
  • Add a spring-wicket-security dependency.
  • Edit the web.xml with Spring listeners.
  • Create EditorPage.html and AuthorPage.html and corresponding

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required