scarecrow scarecrow - 1 year ago 112
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.

Answer Source

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

For example...

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


Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download