4

I have read various tutorials and forums but have not found a working example of combination of Spring security and struts2 to investigate the coding. Most of the current examples are using the predefined username and passwords in the XML file but not connected to database.

Examples:

Please let me know if you know of any example or tutorial.

Roman C
  • 49,761
  • 33
  • 66
  • 176
J888
  • 1,944
  • 8
  • 42
  • 76
  • What's the specific issue? The mechanism used to store credentials shouldn't impact on the web framework, no? You just need a DB authentication provider (e.g., http://stackoverflow.com/questions/2683308/spring-security-3-database-authentication-with-hibernate, http://stackoverflow.com/questions/8416021/spring-securitydatabase-authentication-provider, or any number of other tutorials, blogs, etc.) – Dave Newton Mar 28 '13 at 00:27
  • @DaveNewton the issue is that I am newbie and need to have a look at the code to understand it, but I cant find any. – J888 Mar 28 '13 at 01:14
  • Well... those links had some code, and searching for "spring security db authentication provider" seems to turn up quite a lot of information, e.g., http://www.mkyong.com/spring-security/spring-security-form-login-using-database/ or http://arielsweb.com/?p=115. What other information do you need??? – Dave Newton Mar 28 '13 at 01:45

1 Answers1

1

You should probably start with these tutorials:

Roman C
  • 49,761
  • 33
  • 66
  • 176
  • I have downloaded the code but it does not work. do you know of any other sample similar to this ? – J888 Apr 02 '13 at 01:29