From 561063a4227dd609ccba83880b2d0c6ec2d1e4aa Mon Sep 17 00:00:00 2001 From: phillips1021 Date: Tue, 18 Mar 2014 09:48:18 -0500 Subject: [PATCH] No JIRA - edit JavaDoc for class to make it clearer how to assign a value to a parameter when that value is a literal string --- .../java/org/apache/struts2/components/GenericUIBean.java | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/core/src/main/java/org/apache/struts2/components/GenericUIBean.java b/core/src/main/java/org/apache/struts2/components/GenericUIBean.java index 64dfabe0d..9521e1f7b 100644 --- a/core/src/main/java/org/apache/struts2/components/GenericUIBean.java +++ b/core/src/main/java/org/apache/struts2/components/GenericUIBean.java @@ -56,9 +56,8 @@ import com.opensymphony.xwork2.util.ValueStack; * engine will be found based on file extension.

* * Remember: the value params will always be resolved against the ValueStack so if you mean to pass a - * string literal to your component, make sure to wrap it in quotes i.e. value="'value1'" otherwise, the the value - * stack will search for an Object on the stack with a method of getValue1(). (now that i've written this, i'm not - * entirely sure this is the case. i should verify this manana)

+ * string literal to your component, make sure to wrap it in single quotes i.e. value="'value1'" (note the opening "' and closing '" otherwise, the the value + * stack will search for an Object on the stack with a method of getValue1().

* * *