This week's book giveaway is in the OO, Patterns, UML and Refactoring forum.
We're giving away four copies of Refactoring for Software Design Smells: Managing Technical Debt and have Girish Suryanarayana, Ganesh Samarthyam & Tushar Sharma on-line!
See this thread for details.
The moose likes Struts and the fly likes strutsconfig.xml Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

JavaRanch » Java Forums » Frameworks » Struts
Bookmark "strutsconfig.xml" Watch "strutsconfig.xml" New topic


C Vivek
Ranch Hand

Joined: Oct 03, 2004
Posts: 115
Hi Guys,
Even if I have a StrutsConfig.xml. I will still have to write the security aspects, listners as part of web.xml right? sorry guys just trying to get some basics right!!

Brent Sterling
Ranch Hand

Joined: Feb 08, 2006
Posts: 948
What you are saying sounds basically correct (you using Struts 1.x?). You need to use a web.xml to tell your container about Struts (the ActionServlet). If you define your roles in web.xml you can then define your action mappings to restrict access based on the user's current role (using the roles attribute on the action tag).

- Brent
C Vivek
Ranch Hand

Joined: Oct 03, 2004
Posts: 115
Thanks mate!
I’ve looked at a lot of different solutions, and in my humble opinion Aspose is the way to go. Here’s the link:
subject: strutsconfig.xml
It's not a secret anymore!