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


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "Security with roles" Watch "Security with roles" New topic
Author

Security with roles

andres matus
Greenhorn

Joined: Dec 21, 2007
Posts: 15
Hi all...

i'm trying to implement security on my struts app, but i dont know how to set groups and roles to the app to identify if a user is in some role...


Be free...do what ever you whant
Merrill Higginson
Ranch Hand

Joined: Feb 15, 2005
Posts: 4864
In order to do this, you must implement J2EE "container managed security". The mechanics of how to do this will depend on which application server you're using. If you're using Tomcat version 6, the following link should get you started:

http://tomcat.apache.org/tomcat-6.0-doc/realm-howto.html


Merrill
Consultant, Sima Solutions
sharathchandra sabbani
Greenhorn

Joined: Oct 15, 2007
Posts: 13
i'm using websphere webserver how to implement security roles for my application
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Security with roles
 
Similar Threads
Use JAAS for access control.
How to assign users to security roles?
Single Signon and (vs?) Webapp Realms
implement security constraints and assign users
Getting defined security-roles programatically