You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@struts.apache.org by "Niall Pemberton (JIRA)" <ji...@apache.org> on 2006/11/27 05:35:57 UTC
[jira] Resolved: (STR-2902) validator should use locale when
validating float/double
[ http://issues.apache.org/struts/browse/STR-2902?page=all ]
Niall Pemberton resolved STR-2902.
----------------------------------
Resolution: Duplicate
Fixed by STR-1574 in Struts 1.3
http://svn.apache.org/viewvc?view=rev&revision=279861
> validator should use locale when validating float/double
> --------------------------------------------------------
>
> Key: STR-2902
> URL: http://issues.apache.org/struts/browse/STR-2902
> Project: Struts 1
> Issue 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