I am using velocity to replace string values in Java.
If my string is "${product_name} available at ${product_price}", then in velocity context, if the values corresponding to the parameters product_name and product_price are found then velocity engine will replace them. However, if not found, the placeholder will not change.
What i am trying is if there are no placeholder values, a default param value should be used. i.e. if product_name is not found in velocity context, default value provided should be used.
Is such facility provided in velocity? And if so, can anybody point me to the correct documentation.