sob., 30 mar 2019 o 20:03 Affan Osman <affan...@gmail.com> 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 has error with code {2}.
>
> I am getting the following result: name and {1} property has error with
> code {2}.
>
> Where I was expecting:
>
> name and num property has error with code 1az.
>
> What am I missing?

Struts version? Can you post your struts.xml? Maybe you are using a
custom TextProvider.

As you see there is a unit test that covers such functionality [1]
[1] 
https://github.com/apache/struts/blob/master/core/src/test/java/com/opensymphony/xwork2/DefaultTextProviderTest.java#L89


Regards
-- 
Łukasz
+ 48 606 323 122 http://www.lenart.org.pl/

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

Reply via email to