I have a scenario in which I set the action message something like : addActionMessage(check.your.phone); where the "check.your.phone" comes from .properties file and has value as : check.your.phone=Please check your phone number <phone number> for more information.
Here showing this static content works fine but phone number which should come from a field in the action class is not working. I mean how do i show the phone number in the message.
I tried something like :
1. check.your.phone=Please check your phone number <s:property value="phoneNumber"/> for more info.
2. check.your.phone=Please check your phone number <s:text name="phoneNumber"/> for more info.
Where the phoneNumber is declared in the Action class as private String phoneNumber; with getter and setter.
Both the above conditions were not replacing the phoneNumber field with the actual value.
Can anybody please help with this case. I mean how can get the phoneNumber value in the error message coming from properties file.
Define and access as following, I'm using OGNL tag convert it to appropriate freemaker tag.
ocjp 6 — Feeding a person with food is a great thing in this world. Feeding the same person by transferring the knowledge is far more better thing. The reason is the amount of satisfaction which we get through food is of only one minute or two. But the satisfaction which we can get through the knowledge is of life long.