You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@struts.apache.org by hu...@apache.org on 2008/01/24 01:29:36 UTC
svn commit: r614751 -
/struts/struts2/trunk/core/src/main/java/org/apache/struts2/components/Set.java
Author: husted
Date: Wed Jan 23 16:29:34 2008
New Revision: 614751
URL: http://svn.apache.org/viewvc?rev=614751&view=rev
Log:
WW-2435 "<s:set> tag does not evaluate Body" Apply patch suggested by Lukasz Racon.
Modified:
struts/struts2/trunk/core/src/main/java/org/apache/struts2/components/Set.java
Modified: struts/struts2/trunk/core/src/main/java/org/apache/struts2/components/Set.java
URL: http://svn.apache.org/viewvc/struts/struts2/trunk/core/src/main/java/org/apache/struts2/components/Set.java?rev=614751&r1=614750&r2=614751&view=diff
==============================================================================
--- struts/struts2/trunk/core/src/main/java/org/apache/struts2/components/Set.java (original)
+++ struts/struts2/trunk/core/src/main/java/org/apache/struts2/components/Set.java Wed Jan 23 16:29:34 2008
@@ -101,7 +101,7 @@
}
body="";
-
+
if ("application".equalsIgnoreCase(scope)) {
stack.setValue("#application['" + getVar() + "']", o);
} else if ("session".equalsIgnoreCase(scope)) {
@@ -118,14 +118,14 @@
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);
@@ -140,5 +140,10 @@
@StrutsTagAttribute(description="The value that is assigned to the variable named <i>name</i>")
public void setValue(String value) {
this.value = value;
+ }
+
+ @Override
+ public boolean usesBody() {
+ return true;
}
}