Win a copy of Kotlin in Action this week in the Kotlin forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

How to set the action url to be a specific one  RSS feed

Sam Chang
Posts: 5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Im using struts 2 and have all my actions mapped to the url pattern "/*" and using sitemesh and acegi-security.

The problem im having is that both sitemesh and acegi-security rely on the url to be specific whereas the way i have my struts actions mapped means they can have any prefix. eg. say i have the struts action: doSomethingSecure.action in /secure/. It would be linked normally by /secure/doSomethingSecure.action, but it also does the same thing as /doSomethingSecure.action (without the /secure/ prefix) which means sitemesh and acegi-security wont do their stuff on it?

My main concern is with acegi-not doing a security check, and whether there is someway to fix the actions url to have a specific url?

And in struts.xml i have
<package name="default" extends="struts-default">
Does anyone know what that line means? I wasnt able to find any documentation on it, so any help is appreciated.

  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!