Commits

musachy  committed 9d9e8c7

XW-670 Copy locale from regular stack to the stack used in parameters binding

git-svn-id: http://svn.opensymphony.com/svn/xwork/branches/2.0@1916e221344d-f017-0410-9bd5-d282ab1896d7

  • Participants
  • Parent commits 5f81851
  • Branches 2.0

Comments (0)

Files changed (1)

File src/java/com/opensymphony/xwork2/interceptor/ParametersInterceptor.java

             OgnlContextState.setCreatingNullObjects(context, true);
             OgnlContextState.setDenyMethodExecution(context, true);
             OgnlContextState.setReportingConversionErrors(context, true);
+
+            //keep locale from original context
+            context.put(ActionContext.LOCALE, stack.getContext().get(ActionContext.LOCALE));
         }
 
         boolean memberAccessStack = newStack instanceof MemberAccessValueStack;