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 Security with Wicket – basic database authentication

Our aim is to do a simple basic authentication on the Wicket application. I want a login dialog to pop-up when we access the URL of the Wicket application. On success it should get redirected to the home page. We need to add Spring Security dependencies to the pom.xml file and rebuild the Wicket application. The next step will be configuring the spring listener in the web.xml file. We also need to add the applicationContext.xml file.

Getting ready

  • 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.
  • Edit the web.xml with Spring listeners.
  • Create a database-details.xml ...

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