Skip to Content
0
Nov 17, 2017 at 06:36 PM

How to get dynamic value from base_en.properties file?

726 Views

Hi,

I want to get Dynamic values from base_en.properties .

Eg: in base_en.properties I'm giving like

text.add=Addition of {0} and {1} is {2}

how to get values for {0} ,{1} and {2} . I'm using configurationservice.getConfiguration().getString("text.add") and how to get/pass values for the three dynamic values .

Expected result from configurationservice.getConfiguration().getString("text.add") is ' Addition of 1 and 2 is 3' in java file.

Regards, Ansell