struts-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From lukaszlen...@apache.org
Subject [1/2] struts git commit: Fixes issue with posting multiple values
Date Sun, 31 Jul 2016 11:39:49 GMT
Repository: struts
Updated Branches:
  refs/heads/master 5acc71f7c -> 8b559afc7


Fixes issue with posting multiple values


Project: http://git-wip-us.apache.org/repos/asf/struts/repo
Commit: http://git-wip-us.apache.org/repos/asf/struts/commit/0b24437e
Tree: http://git-wip-us.apache.org/repos/asf/struts/tree/0b24437e
Diff: http://git-wip-us.apache.org/repos/asf/struts/diff/0b24437e

Branch: refs/heads/master
Commit: 0b24437ed6fb8bf4b655a680a42eb4fd41cdd66c
Parents: 5acc71f
Author: Lukasz Lenart <lukaszlenart@apache.org>
Authored: Sun Jul 31 13:39:22 2016 +0200
Committer: Lukasz Lenart <lukaszlenart@apache.org>
Committed: Sun Jul 31 13:39:22 2016 +0200

----------------------------------------------------------------------
 .../opensymphony/xwork2/interceptor/ParametersInterceptor.java | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/struts/blob/0b24437e/core/src/main/java/com/opensymphony/xwork2/interceptor/ParametersInterceptor.java
----------------------------------------------------------------------
diff --git a/core/src/main/java/com/opensymphony/xwork2/interceptor/ParametersInterceptor.java
b/core/src/main/java/com/opensymphony/xwork2/interceptor/ParametersInterceptor.java
index 80aa363..07bb9df 100644
--- a/core/src/main/java/com/opensymphony/xwork2/interceptor/ParametersInterceptor.java
+++ b/core/src/main/java/com/opensymphony/xwork2/interceptor/ParametersInterceptor.java
@@ -203,7 +203,11 @@ public class ParametersInterceptor extends MethodFilterInterceptor {
             String name = entry.getKey();
             Parameter value = entry.getValue();
             try {
-                newStack.setParameter(name, value.getValue());
+                if (value.isMultiple()) {
+                    newStack.setParameter(name, value.getMultipleValues());
+                } else {
+                    newStack.setParameter(name, value.getValue());
+                }
             } catch (RuntimeException e) {
                 if (devMode) {
                     notifyDeveloperParameterException(action, name, e.getMessage());


Mime
View raw message