scarecrow scarecrow - 6 months ago 48
Java Question

How do we change the default currency on freemarker if we have the desired currencycode in string?

How do I change the default currency in the currency format of a number in freemarker? I only have the three digit currency code in string format.


Perhaps don't use the ?string.currency -format at all and do the formatting yourself?

For example...

${user.locale.currencySign} ${price.forLocale(user.locale)}