download the source code of Reloadable Message Resources from
http://sourceforge.net/project/showfiles.php?group_id=49385 if provide nesting of properties , user.name=Name user.first=First user.firstName=$(user.first) $(user.name) this will result in "FirstName"; you may extract the logic and use in your code -----Original Message----- From: Scott Van Wart [mailto:[EMAIL PROTECTED] Sent: June 06, 2006 1:50 PM To: user@struts.apache.org Subject: Nesting MessageResources for parameter replacement. In the default MessageResources.properties, it includes things like "{0} is required." I'd like to use one of these, and replace {0} with something _that is itself_ a key in the MessageResources.properties. I tried something like this: MessageResources.properties: some.message={0} is my message. some.message.that=That And then in my Action class: errors.add( "property", new ActionMessage( "some.message", new ActionMessage( "some.message.that" ) ) ); but this doesn't work (since the outer ActionMessage simply does a toString() on the parameter). What's the best way of doing this? Thanks, Scott --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] This message has been automatically scanned for viruses