• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Security Struts2 with JEE Login Security.

 
victor chiong
Ranch Hand
Posts: 73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

I decided to use the JEE built in security features using the Form Method.. j_username j_password thing, However base upon my research, I need to manually write to XML the users....,




Previously, I created a login form with struts2 witch is link to a Table using OPENJPA, I insert records for the user to be allowed to the website. If user's will log in, they have to enter the user and the password to a form then my program retrieve the record in the table and check if the user exist and password is correct then users will be directed to the main page..


Is their a way to use my Table to be link to JEE built in security? So that it will be easier for them to register themselves...

Thank you very much,
Vic

 
Joe Ess
Bartender
Posts: 9302
10
Linux Mac OS X Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
victor chiong wrote:H
Is their a way to use my Table to be link to JEE built in security? So that it will be easier for them to register themselves...


That depends on what authentication your container supports. I've used LDAP with Tomcat but I don't know if it supports any other method. Weblogic used to have database authentication, but I believe it has been deprecated in newer versions.
 
victor chiong
Ranch Hand
Posts: 73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Joe,

I found it. In tomcat, it is called JDBCRealm

Tomcat JDBCREALM

I will check on this.

Thanks,
Vic
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic