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:
Rainer Hermanns
2006-09-13 11:38:07 +00:00
parent aa6492ef8a
commit b21dbe75d3
@@ -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;
}