struts-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "ASF GitHub Bot (JIRA)" <>
Subject [jira] [Commented] (WW-3171) "double" and "Double" are not validated with the same decimal séparator
Date Fri, 12 May 2017 14:02:04 GMT


ASF GitHub Bot commented on WW-3171:

GitHub user lukaszlenart opened a pull request:

    WW-3171 WW-3357 WW-3650 WW-4581: Locale aware converters

    This PR introduces Locale aware conversion of `BigDecimal` and `Double` and `Double`

You can merge this pull request into a Git repository by running:

    $ git pull locale-aware-converters

Alternatively you can review and apply these changes as the patch at:

To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:

    This closes #138
commit f874f9cde56f74c5161b17e645f779805c51a04b
Author: Lukasz Lenart <>
Date:   2017-05-12T10:19:48Z

    WW-4581 Uses proper logic to convert String to BigDecimal

commit 266d78d32c786276f37ae701267f6719ea9f8a75
Author: Lukasz Lenart <>
Date:   2017-05-12T11:48:14Z

    WW-3650 Supports double conversion for different locale

commit 20eced95008a9e08a20a59f287115ede00268897
Author: Lukasz Lenart <>
Date:   2017-05-12T12:40:20Z

    WW-3171 Converts numbers to strings using locale

commit 229afea64e77c2dba9eec62b2c339e9fc92c9ec7
Author: Lukasz Lenart <>
Date:   2017-05-12T13:58:54Z

    WW-3171 Uses proper number of digits when formatting double


> "double" and "Double" are not validated with the same decimal séparator
> -----------------------------------------------------------------------
>                 Key: WW-3171
>                 URL:
>             Project: Struts 2
>          Issue Type: Bug
>          Components: Core Actions
>    Affects Versions: 2.0.14
>         Environment: Windows or Linux - Running under Tomcat 6.0 - fr_FR
>            Reporter: françois-frédéric jean
>            Assignee: Lukasz Lenart
>            Priority: Critical
>             Fix For:
> 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

This message was sent by Atlassian JIRA

View raw message