Author: musachy Date: Wed Dec 17 14:05:17 2008 New Revision: 727533 URL: http://svn.apache.org/viewvc?rev=727533&view=rev Log: WW-2732 Document that the Text tag will search the stack if a key is not found on a resource
Modified: struts/struts2/trunk/core/src/main/java/org/apache/struts2/components/Text.java Modified: struts/struts2/trunk/core/src/main/java/org/apache/struts2/components/Text.java URL: http://svn.apache.org/viewvc/struts/struts2/trunk/core/src/main/java/org/apache/struts2/components/Text.java?rev=727533&r1=727532&r2=727533&view=diff ============================================================================== --- struts/struts2/trunk/core/src/main/java/org/apache/struts2/components/Text.java (original) +++ struts/struts2/trunk/core/src/main/java/org/apache/struts2/components/Text.java Wed Dec 17 14:05:17 2008 @@ -50,8 +50,10 @@ * * <p/> * - * If the named message is not found, then the body of the tag will be used as default message. - * If no body is used, then the name of the message will be used. + * If the named message is not found in a property file, then the body of the + * tag will be used as default message. If no body is used, then the stack will + * be searched, and if a value is returned, it will written to the output. + * If no value is found on the stack, the key of the message will be written out. * * <!-- END SNIPPET: javadoc --> *