diff --git a/core/src/main/java/org/apache/struts2/components/Set.java b/core/src/main/java/org/apache/struts2/components/Set.java index d3e167c8f..13ff9675b 100644 --- a/core/src/main/java/org/apache/struts2/components/Set.java +++ b/core/src/main/java/org/apache/struts2/components/Set.java @@ -101,7 +101,7 @@ public class Set extends ContextBean { } body=""; - + if ("application".equalsIgnoreCase(scope)) { stack.setValue("#application['" + getVar() + "']", o); } else if ("session".equalsIgnoreCase(scope)) { @@ -118,14 +118,14 @@ public class Set extends ContextBean { return super.end(writer, body); } - /* + /* * TODO: set required=true when 'id' is dropped after 2.1 */ @StrutsTagAttribute(description="Name used to reference the value pushed into the Value Stack") public void setVar(String var) { super.setVar(var); } - + @StrutsTagAttribute(description="Deprecated. Use 'var' instead") public void setName(String name) { setVar(name); @@ -141,4 +141,9 @@ public class Set extends ContextBean { public void setValue(String value) { this.value = value; } + + @Override + public boolean usesBody() { + return true; + } }