[ http://issues.apache.org/struts/browse/STR-2902?page=all ]

Ted Husted moved SITE-6 to STR-2902:
------------------------------------

    Project: Struts 1  (was: Shared resources)
        Key: STR-2902  (was: SITE-6)

> validator should use locale when validating float/double
> --------------------------------------------------------
>
>          Key: STR-2902
>          URL: http://issues.apache.org/struts/browse/STR-2902
>      Project: Struts 1
>         Type: Improvement

>     Reporter: Magnus Melin

>
> The struts validator should allow validation for float and double values 
> where commas are used for decimal separator. E.g. 2.0 vs 2,0.
> (commons-validator itself supports it 
> (http://issues.apache.org/bugzilla/show_bug.cgi?id=34198), so it should be a 
> matter of 
> * defining/taking the locale from somewhere
> * using the preferred locale in FieldsChecks.java (and maybe a few other 
> places)
> Probably a pref to not use this behaviour could be needed as well.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/struts/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira

Reply via email to