mirror of
https://github.com/apache/struts.git
synced 2026-08-11 01:27:14 +00:00
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:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user