Skip to content

Commit 4eca246

Browse files
author
Przemek Bruski
committed
action parameters should be included when building the URL to action
1 parent a2de255 commit 4eca246

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

core/src/main/java/org/apache/struts2/components/ServletUrlRenderer.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -204,7 +204,7 @@ public void renderFormUrl(Form formComponent) {
204204
LOG.warn("No configuration found for the specified action: '{}' in namespace: '{}'. Form action defaulting to 'action' attribute's literal value.", actionName, namespace);
205205
}
206206

207-
String result = urlHelper.buildUrl(action, formComponent.request, formComponent.response, null, scheme, formComponent.includeContext, true);
207+
String result = urlHelper.buildUrl(action, formComponent.request, formComponent.response, actionParams, scheme, formComponent.includeContext, true);
208208
formComponent.addParameter("action", result);
209209

210210
// namespace: cut out anything between the start and the last /

0 commit comments

Comments
 (0)