Commits

the_mindstorm  committed 3f5ee1e
  • Participants
  • Parent commits 0c6e6a7

Comments (0)

Files changed (1)

File src/java/com/opensymphony/xwork/interceptor/AliasInterceptor.java

                     String name = entry.getKey().toString();
                     String alias = (String) entry.getValue();
                     Object value = stack.findValue(name);
-                    stack.setValue(alias, value);
+                    if (null == value) {
+                        // workaround
+                        Map contextParameters = (Map) stack.getContext().get("parameters");
+                        
+                        if (null != contextParameters) {
+                            value = contextParameters.get(name);
+                        }
+                    }
+                    if (null != value) {
+                        stack.setValue(alias, value);
+                    }
                 }
             } else {
                 log.debug("invalid alias expression:" + aliasesKey);