How to pass a decimal value from JSP to Action with a Localized decimal separator?
In the JSP: <input type = "number" name = "score" min = "0" max = "100" maxlength = "3" step = "0.01" /> In the Action: @Getter @Setter private Float score; When the value has decimal places (eg. 56,78 ), in the Action I get 5678.0 . This is due to the fact that Struts2 is not aware that in my country , is the decimal separator, not the thousands separator. Is there a way to instruct Struts2 to use the decimal separator of a specific Locale , so that it will be able to convert the floating numbers correctly ? When the value has decimal places (eg. 56,78), in the Action I get 5678.0 This is