From 5ebf37efbafdb4c64e774d7efda9ff1187320e8a Mon Sep 17 00:00:00 2001 From: Musachy Barroso Date: Wed, 17 Dec 2008 22:05:17 +0000 Subject: [PATCH] WW-2732 Document that the Text tag will search the stack if a key is not found on a resource git-svn-id: https://svn.apache.org/repos/asf/struts/struts2/trunk@727533 13f79535-47bb-0310-9956-ffa450edef68 --- core/src/main/java/org/apache/struts2/components/Text.java | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/core/src/main/java/org/apache/struts2/components/Text.java b/core/src/main/java/org/apache/struts2/components/Text.java index 396fbf9ba..a88ecf73d 100644 --- a/core/src/main/java/org/apache/struts2/components/Text.java +++ b/core/src/main/java/org/apache/struts2/components/Text.java @@ -50,8 +50,10 @@ import com.opensymphony.xwork2.util.logging.LoggerFactory; * *

* - * 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. * * *