Adding support for always select full namespace

WW-2428


git-svn-id: https://svn.apache.org/repos/asf/struts/struts2/trunk@628299 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Donald J. Brown
2008-02-16 14:03:26 +00:00
parent 6a564daee7
commit 9c00c3fcfb
@@ -279,6 +279,10 @@ public class RestActionMapper extends DefaultActionMapper {
// namespace anyway if not found in root namespace.
namespace = "/";
name = uri.substring(lastSlash + 1);
} else if (alwaysSelectFullNamespace) {
// Simply select the namespace as everything before the last slash
namespace = uri.substring(0, lastSlash);
name = uri.substring(lastSlash + 1);
} else {
// Try to find the namespace in those defined, defaulting to ""
Configuration config = configManager.getConfiguration();