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

[validator] numeric validations should use locales

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 1.2.7
    • 1.3.0
    • Core
    • None
    • Operating System: other
      Platform: Other
    • 21282

    Description

      the type double validator does not seam to use the correct locale in struts V1.1

      i have a form with a double and a date. editing the form using an en_US locale
      works fine (e.g., double=1.1 date=01/01/01). editing the form using locale de
      fails (e.g., double=1,1 date=01.01.01) for the double (not correct type) but
      works ok for the date. entering the english double with a german locale passes
      validation, but results in real trouble, as in german the "." is used like
      1.000,- thus making my entered 1.1 into a 11

      not nice

      Attachments

        1. ASF.LICENSE.NOT.GRANTED--GenericTypeValidator.patch
          14 kB
          Andrew van der Voort
        2. ASF.LICENSE.NOT.GRANTED--FieldChecks.patch
          3 kB
          Andrew van der Voort

        Issue Links

          Activity

            People

              Unassigned Unassigned
              dirk.sturzebecher@ovsag.de Dirk Sturzebecher
              Votes:
              10 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: