File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
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 agree. Here's the link:
subject: strutsconfig.xml
It's not a secret anymore!