diff --git a/core/src/main/java/org/apache/struts2/components/Form.java b/core/src/main/java/org/apache/struts2/components/Form.java index 1af2af09e..de7fbbc27 100644 --- a/core/src/main/java/org/apache/struts2/components/Form.java +++ b/core/src/main/java/org/apache/struts2/components/Form.java @@ -211,14 +211,10 @@ public class Form extends ClosingUIBean { protected void populateComponentHtmlId(Form form) { if (id != null) { addParameter("id", escape(id)); - } else if (this.action != null) { - // if it isn't specified, we'll make somethig up - String action = findString(this.action); - if (action != null) { - addParameter("id", escape(action)); - } } + // if no id given, it will be tried to generate it from the action attribute + // by the urlRenderer implementation urlRenderer.renderFormUrl(this); }