Thanks René!! It works perfectly.
******************************
The key attribute is for simple resource properties lookup only, without
MessageFormat. The <s:text> tag is able to deal with MessageFormat in
particular.
In your case you could either use specialized properties in your bundle:
reject.to=Reject to
reject.to.larry=%{getText('reject.to')} Larry
or use the getText call in your tag:
<s:submit theme="simple" name="inspectorReject"
value="%{getText('label.button.reject',{'Larry'})}" align="center" />
or, if users is a collection to iterate over, containing user beans with a
property firstName:
<s:iterator value="users">
<s:submit theme="simple" name="inspectorReject"
value="%{getText('label.button.reject',{firstName})}" align="center" />
</s:iterator>
See also:
https://cwiki.apache.org/confluence/display/WW/Localization
https://cwiki.apache.org/confluence/display/WW/Formatting+Dates+and+Numbers
- René
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]