wood burning stoves 2.0*
The moose likes Struts and the fly likes How to set the action url to be a specific one Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "How to set the action url to be a specific one" Watch "How to set the action url to be a specific one" New topic
Author

How to set the action url to be a specific one

Sam Chang
Greenhorn

Joined: Mar 22, 2007
Posts: 5
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.

cheers,
sam
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
 
subject: How to set the action url to be a specific one
 
Similar Threads
Filter-mapping in web.xml error
Servlet Map vs Static Resource
Struts 2 security
Security frameworks for application frameworks
Question about Security in Spring in Action