Bhaarat Sharma wrote:
is there a way in struts2 to create a locale in the properties file and then
substitue values to it?
For example:
in properties file:
myApp.Welcome = "Hello ?"

then when we call this locale we can pass in some value for '?'

<s:text name="myApp.Welcome"><s:parm value="World"/></stext>
<br>
<s:text name="myApp.Welcome"><s:parm value="John"/></stext>

This would print:
Hello World
Hello John

You can do it using positional parameters like regular Java, or use OGNL expressions in the message.

Dave

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

Reply via email to