You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@struts.apache.org by lu...@apache.org on 2016/07/15 07:24:08 UTC

[2/3] struts git commit: action parameters should be included when building URL to action

action parameters should be included when building 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/b67bed67
Tree: http://git-wip-us.apache.org/repos/asf/struts/tree/b67bed67
Diff: http://git-wip-us.apache.org/repos/asf/struts/diff/b67bed67

Branch: refs/heads/master
Commit: b67bed674a5bcab83ac685d54670174c2c2f5f83
Parents: 516d3d5
Author: Przemek Bruski <pb...@atlassian.com>
Authored: Tue Jun 21 16:19:40 2016 +0200
Committer: Przemek Bruski <pb...@atlassian.com>
Committed: Tue Jun 21 16:19:40 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/b67bed67/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 /