Uploaded image for project: 'Struts 1'
  1. Struts 1
  2. STR-2902

validator should use locale when validating float/double

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Major
    • Resolution: Duplicate
    • None
    • None
    • None
    • None

    Description

      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.

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              mkmelin Magnus Melin
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: