Uploaded image for project: 'Struts 2'
  1. Struts 2
  2. WW-3171

"double" and "Double" are not validated with the same decimal séparator

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Critical
    • Resolution: Fixed
    • Affects Version/s: 2.0.14
    • Fix Version/s: 2.5.12
    • Component/s: Core Actions
    • Labels:
      None
    • Environment:

      Windows or Linux - Running under Tomcat 6.0 - fr_FR

    • Flags:
      Important

      Description

      I had this strange behaviour.
      I have two double in my Action (extends ActionSupport):
      ---------------------------
      private double dbl1;
      private Double dbl2;
      ---------------------------
      With there respective getters and setters.

      But, when I call the action with these two doubles (from a classical HTML form), I must put a "dot" for the double, and a "comma" for the Double as a decimal separator,

      I'm surprised by this behaviour .... Nothing particular was done (HTML form calling an action). I can't imagine what is the reason of this behaviour, so I raise it as a bug.

      Regards

      Francillo

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                lukaszlenart Lukasz Lenart
                Reporter:
                francillo françois-frédéric jean
              • Votes:
                0 Vote for this issue
                Watchers:
                7 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: