You can try load the locale of this user and Format currencyformat = NumberFormat.getCurrencyInstance(locale); Return currencyformat.format(amount);
-----Original Message----- From: Paolo Niccolò Giubelli [mailto:paoloniccolo.giube...@itestense.it] Sent: Friday, January 30, 2009 1:54 PM To: Struts Users Mailing List Subject: textbox showing currency default value Hi! I need to display a textbox, where the user should write a money value in eur. I need the textbox to display the default value in the correct currency mode, like 0,00 (comma separated decimals) and not 0.0. Of course, the textbox is "connected" with a float field. Now I get 0.0 as the default value and when I type something like 20,99 the value is not recognized as a valid float. Any idea? Thank you in advance! Paolo --------------------------------------------------------------------- To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org