struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Chris Pratt <thechrispr...@gmail.com>
Subject Re: Currency Formatting
Date Sun, 11 Jul 2010 00:25:10 GMT
Define something like:

format.currency={0,number,currency}

In your applications.properties file, then use:

<s:text name="format.currency"><s:param value="%{amount}"/></s:text>

HTH
  (*Chris*)

On Sat, Jul 10, 2010 at 5:53 AM, Chris Miles <chris@chrismiles.org> wrote:

> Hi
>
> If I am displaying a Double to a JSP page what is the recommended way to
> format this is as a currency to two decimal points?
>
> Thanks
>
> Chris

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message