mirror of
https://github.com/apache/struts.git
synced 2026-08-11 01:27:14 +00:00
ScopeInterceptor caches key in instance variable
o backport from WW 2.2.4 Issue Number: WW-1443 git-svn-id: https://svn.apache.org/repos/asf/struts/struts2/trunk@442948 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
@@ -183,9 +183,9 @@ public class ScopeInterceptor extends AbstractInterceptor implements PreResultLi
|
||||
private String getKey(ActionInvocation invocation) {
|
||||
ActionProxy proxy = invocation.getProxy();
|
||||
if (key == null || "CLASS".equals(key)) {
|
||||
key = "struts.ScopeInterceptor:" + proxy.getAction().getClass();
|
||||
return "struts.ScopeInterceptor:" + proxy.getAction().getClass();
|
||||
} else if ("ACTION".equals(key)) {
|
||||
key = "struts.ScopeInterceptor:" + proxy.getNamespace() + ":" + proxy.getActionName();
|
||||
return "struts.ScopeInterceptor:" + proxy.getNamespace() + ":" + proxy.getActionName();
|
||||
}
|
||||
return key;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user