As discussed on
http://forums.opensymphony.com/thread.jspa?threadID=12138 :
I was expecting that configuring a package with namespace="/" would allow me to have actions in the "root" namespace i.e
http://my-host/myApp/foo.action (without having that foo action available in *other* namespaces, as would be the case if i'd use namespace="").
From what I see, my action is correctly set up in DefaultConfiguration's namespaceActionConfigs map, however DefaultActionMapper ignores the leading /
void parseNameAndNamespace(String uri, ActionMapping mapping) {
.....
if (lastSlash == -1) {
.....
} else if (lastSlash == 0) {
// ww-1046, assume it is the root namespace, it will fallback to default
// namespace anyway if not found in root namespace.
namespace = "/";
name = uri.substring(lastSlash + 1);
} else {
...
}
......
}