Re: [S2] Subsitute variable in i18n properties file

2008-02-11 Thread hezjing
>> John This one works! > label.welcome = Welcome {name} > > > John > > This one doesn't work, it displayed a colon ":" instead of the message from the i18n properties file. > label.welcome = Welcome {0} > > > John > > This will throw the following exception, java.lang.NullPointerException

Re: [S2] Subsitute variable in i18n properties file

2008-02-11 Thread Wes Wannemacher
IIRC, you can use named parameters. If you want to keep the {name}, use label.welcome = Welcome {name} John On Mon, 2008-02-11 at 09:10 -0800, Chris Pratt wrote: > Change your property to > > label.welcome = Welcome {0} > > Then you might try: > > > John > > > If that doesn't work,

Re: [S2] Subsitute variable in i18n properties file

2008-02-11 Thread Chris Pratt
Change your property to label.welcome = Welcome {0} Then you might try: John If that doesn't work, you should be able to use: John (*Chris*) On Feb 11, 2008 7:13 AM, hezjing <[EMAIL PROTECTED]> wrote: > Hi > > If I have a message defined in i18n properties file shown below, > > lab