This week's book giveaway is in the OCMJEA forum.
We're giving away four copies of OCM Java EE 6 Enterprise Architect Exam Guide and have Paul Allen & Joseph Bambara on-line!
See this thread for details.
The moose likes Struts and the fly likes How to implement Role Based Access Control with Authentication in Struts1? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of OCM Java EE 6 Enterprise Architect Exam Guide this week in the OCMJEA forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "How to implement Role Based Access Control with Authentication in Struts1?" Watch "How to implement Role Based Access Control with Authentication in Struts1?" New topic
Author

How to implement Role Based Access Control with Authentication in Struts1?

Vidya Gupta
Ranch Hand

Joined: Mar 18, 2012
Posts: 98

Hi,

Can any one tell me how to implement role based access to an application using struts1... I mean, based on the person who logs in the application should display the jsp's. Please tell me in implementing this requirement.

Thanks&Regards,
Vidya
Sumit Patil
Ranch Hand

Joined: May 25, 2009
Posts: 296

You can use Apache Shiro

Or use container level authentication.
For tomcat see this example


Thanks & Regards, Sumeet
SCJP 1.4, SCWCD 5, LinkedIn Profile
Vidya Gupta
Ranch Hand

Joined: Mar 18, 2012
Posts: 98

Thanks for the reply sumit.. Am not using tomcat in my application. Am using jboss. And i don't know anything about role based access control in struts1. plesae provide me any links or any examples to learn. please..
Sumit Patil
Ranch Hand

Joined: May 25, 2009
Posts: 296

See Jboss documentation

Here

and

here

One example for your reference
 
Consider Paul's rocket mass heater.
 
subject: How to implement Role Based Access Control with Authentication in Struts1?