Author: musachy Date: Fri Jul 13 11:38:45 2007 New Revision: 556096 URL: http://svn.apache.org/viewvc?view=rev&rev=556096 Log: WW-2027 Tags that push values into the value stack should use the "var" attribute to specify the name of the variable * Make "name" optional in "set" tag
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?view=diff&rev=556096&r1=556095&r2=556096 ============================================================================== --- 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 Fri Jul 13 11:38:45 2007 @@ -121,12 +121,12 @@ /* * TODO: set required=true when 'id' is dropped after 2.1 */ - @StrutsTagAttribute(description="Name used to reference the value pushed into the Value Stack", required=false) + @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", required=true) + @StrutsTagAttribute(description="Deprecated. Use 'var' instead") public void setName(String name) { setVar(name); }