struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Rubens <rubens_go...@hotmail.com>
Subject S2 Refering to another key in the Resource Bundle?
Date Wed, 04 Jun 2008 06:26:36 GMT

Does Struts 2 resource bundle support refering to previously defined
parameter keys in the resources file?

For example, something like this:

software.version=1.0.1
software.text=Software version is ${software.version}

<s:text name="software.text" /> prints
Software version is 1.0.1

I know I can use the {0}, {1}, ...{n} tokens and pass use
<s:param>...</s:param> with <s:text>...</s:text>.  However, I have
cases
where this is not possible to do.

Thanks.

Rubens.
-- 
View this message in context: http://www.nabble.com/S2-Refering-to-another-key-in-the-Resource-Bundle--tp17640036p17640036.html
Sent from the Struts - User mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org


Mime
View raw message