If you want to handle parsing yourself, make your action properties take "String" parameters and do the parsing in the action. (*Chris*)
On Tue, Jun 19, 2012 at 7:55 AM, Pierre TEMPLIER <pierre.templ...@gmail.com>wrote: > Locale.FRENCH and Locale FRANCE should output something like 345 987,246 > > i can confirm that with a slightly modified struts-blank app > (defaultStack and a textfield mapped to a Double) i'm having a > conversion error for Doubles too. It doesn't like the thousand > separator (space) and it converts coma to point ( ',' to '.' ) > > Pierre. > > On Tue, Jun 19, 2012 at 9:33 AM, J. Garcia <jogaco...@gmail.com> wrote: > > According to the Java formatting api, the French locale for integers > would > > look something like this: > > > > 345 987,246 > > > > http://docs.oracle.com/javase/tutorial/i18n/format/numberFormat.html > > > > As I have been working on integer l10n, I have tested this, and if I set > > French locale and enter an integer like this: 345 987, I get a conversion > > error. > > > > J. > > > > On Mon, Jun 18, 2012 at 5:28 PM, Chris Pratt <thechrispr...@gmail.com > >wrote: > > > >> I think the problem is that the French locale specifies that it should > be > >> written as "445.000,00" not "445,000.00". The parser expects > localized > >> input. > >> (*Chris*) > >> > >> On Mon, Jun 18, 2012 at 7:06 AM, Łukasz Lenart < > >> lukasz.len...@googlemail.com > >> > wrote: > >> > >> > I think the problem is related to primitive converter which doesn't > >> > include Locale in conversion, take a look on that bug and related > >> > > >> > https://issues.apache.org/jira/browse/WW-3171 > >> > > >> > > >> > Regards > >> > -- > >> > Łukasz > >> > mobile +48 606 323 122 http://www.lenart.org.pl/ > >> > Warszawa JUG conference - Confitura http://confitura.pl/ > >> > > >> > --------------------------------------------------------------------- > >> > 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 > >