• 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 Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Paul Clapham
  • Ron McLeod
  • Jeanne Boyarsky
  • Tim Cooke
Sheriffs:
  • Liutauras Vilda
  • paul wheaton
  • Henry Wong
Saloon Keepers:
  • Tim Moores
  • Tim Holloway
  • Stephan van Hulst
  • Carey Brown
  • Frits Walraven
Bartenders:
  • Piet Souris
  • Himai Minh

Security Struts2 with JEE Login Security.

 
Ranch Hand
Posts: 73
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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: 9626
16
Mac OS X Linux Windows
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
This. Exactly this. This is what my therapist has been talking about. And now with a tiny ad:
free, earth-friendly heat - a kickstarter for putting coin in your pocket while saving the earth
https://coderanch.com/t/751654/free-earth-friendly-heat-kickstarter
reply
    Bookmark Topic Watch Topic
  • New Topic