wood burning stoves 2.0*
The moose likes Struts and the fly likes Security Struts2 with JEE Login Security. Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "Security Struts2 with JEE Login Security." Watch "Security Struts2 with JEE Login Security." New topic
Author

Security Struts2 with JEE Login Security.

victor chiong
Ranch Hand

Joined: Apr 04, 2012
Posts: 73
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

Joined: Oct 29, 2001
Posts: 8836
    
    7

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.


"blabbing like a narcissistic fool with a superiority complex" ~ N.A.
[How To Ask Questions On JavaRanch]
victor chiong
Ranch Hand

Joined: Apr 04, 2012
Posts: 73
Hi Joe,

I found it. In tomcat, it is called JDBCRealm

Tomcat JDBCREALM

I will check on this.

Thanks,
Vic
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Security Struts2 with JEE Login Security.
 
Similar Threads
Webapp-Security chapter revision notes from HFSJ , may be useful
HTTP Status 403 Access to the requested resource has been denied
web apps security
Problem with security constraints while doing authentication & authorization
Studying HeadFirst book: cannot make authentification