String interpolation with fmt:message tag

Question

Is a string interpolation with an fmt:message tag possible?

Answer

The fmt:message tag has 4 attributes: 

Attributes:

Name

Required

Type

  Description

       

key

False

java.lang.String

  Key of the message to be looked up from the resource bundle.

bundle

False

java.lang.String

  Which resource bundle is the key to be looked up.

var

False

java.lang.String

  Name of the variable to store the localized message.

scope

False

java.lang.String

  The scope in which the localized message variable is to be stored.

 

Per default no string interpolation is allowed. But you can store the read message in a variable (var property) and change the message with a string replace before you display it.