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: action parameters should be included when building the URL to action
Date Fri, 15 Jul 2016 08:40:27 GMT
Repository: struts
Updated Branches:
  refs/heads/master ca42e4ea5 -> 7f5c8b620


action parameters should be included when building the URL to action


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

Branch: refs/heads/master
Commit: 4eca24631baafcf738f077469e120af611078d9d
Parents: a2de255
Author: Przemek Bruski <pbruski@atlassian.com>
Authored: Tue Jun 21 16:27:46 2016 +0200
Committer: Przemek Bruski <pbruski@atlassian.com>
Committed: Tue Jun 21 16:27:46 2016 +0200

----------------------------------------------------------------------
 .../java/org/apache/struts2/components/ServletUrlRenderer.java     | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/struts/blob/4eca2463/core/src/main/java/org/apache/struts2/components/ServletUrlRenderer.java
----------------------------------------------------------------------
diff --git a/core/src/main/java/org/apache/struts2/components/ServletUrlRenderer.java b/core/src/main/java/org/apache/struts2/components/ServletUrlRenderer.java
index 5b63cd4..314f3de 100644
--- a/core/src/main/java/org/apache/struts2/components/ServletUrlRenderer.java
+++ b/core/src/main/java/org/apache/struts2/components/ServletUrlRenderer.java
@@ -204,7 +204,7 @@ public class ServletUrlRenderer implements UrlRenderer {
                 LOG.warn("No configuration found for the specified action: '{}' in namespace:
'{}'. Form action defaulting to 'action' attribute's literal value.", actionName, namespace);
             }
 
-            String result = urlHelper.buildUrl(action, formComponent.request, formComponent.response,
null, scheme, formComponent.includeContext, true);
+            String result = urlHelper.buildUrl(action, formComponent.request, formComponent.response,
actionParams, scheme, formComponent.includeContext, true);
             formComponent.addParameter("action", result);
 
             // namespace: cut out anything between the start and the last /


Mime
View raw message