ロケールに基づいて値を設定する必要があります。en_US
またはロケールを取得しますfr_FR
String locale = object.getLocale(); //
次に、ロケールに基づいて、通貨を定義する必要があります。必要な通貨フォーマットはで定義されています。
Language Example Notes
Canadian French 123.456.789,99 $ symbol is a suffix,'comma' for decimal
Canadian English $123,456,789.99 symbol is a prefix,'dot' for decimal
現在、Javaクラスに値を直接設定するフォーム属性があります。
...
Form form = new Form();
// Stub data for generating a graph.
formBean.setCurrOne("123.54");
formBean.setCurrTwo("456.33");
....//before I set those attributes I need to place a check
// for locale and format the currency accordingly.
フォーマットを手伝ってくれませんか。また、通貨形式には,
との違いがあります。.