3

Can I use a message key in a message value? I am looking for something like:

messages.properties-file:

mykey.intro =Thanks for visiting the #{mykey.companyname} website.<br/>
mykey.main =At #{mykey.companyname} we like to foobar.<br/>
mykey.more =There is more at #{mykey.companyname}. Please see ....<br/>
mykey.companyname =<span class="myclass">FOObar</span>

The goal is to have a styled companyname added to the website at several places in the website.

trompetix
  • 31
  • 4
  • Possible duplicate of [How to reference another property in java.util.Properties?](https://stackoverflow.com/questions/872272/how-to-reference-another-property-in-java-util-properties) – riddle_me_this Jan 29 '18 at 01:16
  • https://stackoverflow.com/questions/1412132/can-i-reference-another-property-in-a-properties-file-use-property – riddle_me_this Jan 29 '18 at 01:16
  • Anyone, has the answer for this? I don't think so it is duplicate. Becuase @trompetix want to achieve this in Thymleaf Spring. – Vijay Shegokar Jul 11 '18 at 06:32
  • https://stackoverflow.com/questions/48231060/thymeleaf-can-i-use-messages-inside-expressions – RW89 Oct 05 '18 at 14:59

0 Answers0