File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
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
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
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: How to set the action url to be a specific one
 
Similar Threads
Struts 2 security
Security frameworks for application frameworks
Question about Security in Spring in Action
Servlet Map vs Static Resource
Filter-mapping in web.xml error