This week's book giveaway is in the OCAJP 8 forum.
We're giving away four copies of OCA Java SE 8 Programmer I Study Guide and have Edward Finegan & Robert Liguori on-line!
See this thread for details.
The moose likes Struts and the fly likes Security in struts Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of OCA Java SE 8 Programmer I Study Guide this week in the OCAJP 8 forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "Security in struts" Watch "Security in struts" New topic

Security in struts

Joby George

Joined: Jun 10, 2004
Posts: 3
Hi All,

Can any one help me how to configure security in struts and I am using WSAD5.1.
Nathaniel Stoddard
Ranch Hand

Joined: May 29, 2003
Posts: 1258
If I've read the documentation clearly, you still define security through your web.xml deployment descriptors. Then, you can limit access to actions via the struts-config.xml so users in certain roles are allowed, and everybody else rudely rejected.

Check out the struts-config DTD for more info. (I can't think of any better source -- not that I've found.) Maybe the Struts User Guide, but that's just a guess. I don't remember security being mentioned in it.

I agree. Here's the link:
subject: Security in struts
It's not a secret anymore!