I am doing this but not working imi.welcome = Hello {0} <s:text name="imi. welcome "><s:param value="%{World}"/></s:text>
On Wed, Jun 3, 2009 at 7:16 PM, Dave Newton <newton.d...@yahoo.com> wrote: > 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 > >