1. opensymphony
  2. xwork

Commits

cameronbraid  committed 3e2fdc8

Fixed problem where chaining interceptor coppied properties from the first action to itself.

git-svn-id: http://svn.opensymphony.com/svn/xwork/trunk/src@64e221344d-f017-0410-9bd5-d282ab1896d7

  • Participants
  • Parent commits e2a3852
  • Branches master

Comments (0)

Files changed (1)

File java/com/opensymphony/xwork/interceptor/ChainingInterceptor.java

View file
  • Ignore whitespace
     protected void before(ActionInvocation invocation) throws Exception {
         OgnlValueStack stack = invocation.getStack();
         CompoundRoot root = stack.getRoot();
-
-        for (Iterator iterator = root.iterator(); iterator.hasNext();) {
+		Iterator iterator = root.iterator();
+		iterator.next();
+        while(iterator.hasNext()) {
             Object o = iterator.next();
             OgnlUtil.copy(o, invocation.getAction(), ActionContext.getContext().getContextMap());
         }