Win a copy of Programmer's Guide to Java SE 8 Oracle Certified Associate (OCA) this week in the OCAJP forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Security in struts

 
Joby George
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi All,

Can any one help me how to configure security in struts and I am using WSAD5.1.
 
Nathaniel Stoddard
Ranch Hand
Posts: 1258
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic