This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
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 Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "Security with roles" Watch "Security with roles" New topic

Security with roles

andres matus

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 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:

Consultant, Sima Solutions
sharathchandra sabbani

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:
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