• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Liutauras Vilda
  • Jeanne Boyarsky
  • Devaka Cooray
  • Paul Clapham
Sheriffs:
  • Tim Cooke
  • Knute Snortum
  • Bear Bibeault
Saloon Keepers:
  • Ron McLeod
  • Tim Moores
  • Stephan van Hulst
  • Piet Souris
  • Ganesh Patekar
Bartenders:
  • Frits Walraven
  • Carey Brown
  • Tim Holloway

Security Struts2 with JEE Login Security.

 
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

 
Bartender
Posts: 9559
12
Mac OS X Linux 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
 
Consider Paul's rocket mass heater.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!