I have a message like below in my conf file.
text.message = Richard has to go to School in 01/06/2012 / 1days.
All highlighted field will be variable.
I want to read this text.me string and insert the value from my java using Properties.
I know how to read the whole string using Prop, but don’t know how to read like above String which will be like.
text.message = #name# has to go to #place# in #date# / #days#.
-
how can I read the above string from the conf using Properties and insert data dynamically?
-
It can be either date or days in the string. How I can turn on and off between those parameters?
Thanks ahead.
You can use the
MessageFormatAPI for this.Kickoff example:
with