Double single quotes did the trick. Thanks!
On Apr 2, 2019, 10:59 AM -0400, Lukasz Lenart , wrote:
> wt., 2 kwi 2019 o 16:54 Dave Newton napisał(a):
> >
> > Single-quotes must be escaped using double single-quotes; single quotes are
> > used to allow non-resource strings. IIRC this is just how `Me
wt., 2 kwi 2019 o 16:54 Dave Newton napisał(a):
>
> Single-quotes must be escaped using double single-quotes; single quotes are
> used to allow non-resource strings. IIRC this is just how `MessageFormat`
> works.
Yeah... getText() is using MessageFormat so you must properly escape
your messages
Single-quotes must be escaped using double single-quotes; single quotes are
used to allow non-resource strings. IIRC this is just how `MessageFormat`
works.
On Tue, Apr 2, 2019 at 10:40 AM Affan Osman wrote:
> I think found the issue. It fails because of '.
>
> test.key={0}is{1}and{2}.
> test.ke
I think found the issue. It fails because of '.
test.key={0}is{1}and{2}.
test.key2={0}'sis{1}and{2}.
String key1= getText("test.key", newString[] {"aa11", "bb22", "cc33"});
String key2= getText("test.key2", newString[] {"aa11", "bb22", "cc33"});
Key 1: aa11 is bb22 and cc33.
Key 2: aa11s is {1}
wt., 2 kwi 2019 o 04:46 Affan Osman napisał(a):
>
> I am using version 2.5.17. I am not using any custom text provider.
>
> I tried the same example as in the unit test but still only first parameter
> gets populated. The second and third show as [1] and [2].
Could you share your struts.xml? Thi
I am using version 2.5.17. I am not using any custom text provider.
I tried the same example as in the unit test but still only first parameter
gets populated. The second and third show as [1] and [2].
Thanks.
On Mar 31, 2019, 5:21 AM -0400, Lukasz Lenart , wrote:
> sob., 30 mar 2019 o 20:03 Aff
sob., 30 mar 2019 o 20:03 Affan Osman napisał(a):
>
> I am passing in three parameters to getText but only the first one gets
> populated.
>
> getText("error.invalidcode", new String[] {"name", "num", "1az"});
>
> And in my ApplicationResources.properties
>
> error.invalidcode={0} and {1} property
I am passing in three parameters to getText but only the first one gets
populated.
getText("error.invalidcode", new String[] {"name", "num", "1az"});
And in my ApplicationResources.properties
error.invalidcode={0} and {1} property has error with code {2}.
I am getting the following result: name
8 matches
Mail list logo