Hi,
see
http://struts.apache.org/2.1.8.1/docs/formatting-dates-and-numbers.html
It is important to know that Struts 2 has always a locale context
request for each request, which affects both formating and parsing dates
and numbers. The request locale is determined as follows:
1. Request paramete
In my experience it's better to define number (and time) input fields
as String and perform the conversion and validation in your action
using java.text.NumberFormat . This puts you in control of the
process and let's you handle I18N issues that way you want to without
fighting Struts.
I typicall
Hi,
This is very diffcult issue in struts. First you have to set your locale
correctly. Second you have to use in the jsp the correct calls for number
formatting. The struts docummenattion explains this point in FAQ (I hold in
mind so). Alternatively you can write your own converter for BigDecimal
Any idea?
2007/10/23 Pedro Herrera
>
> Hi,
> I have a currency input field (BigDecimal). In my location the decimal
> point is comma, eg, 10,00(==10.00) must be permitted. Struts is throwing a
> message error : Invalid field value for field "valor".
>
>
> Thanks
>
> Herrera
>
>
> --
> View th
Hi,
I have a currency input field (BigDecimal). In my location the decimal
point is comma, eg, 10,00(==10.00) must be permitted. Struts is throwing a
message error : Invalid field value for field "valor".
Thanks
Herrera
--
View this message in context:
http://www.nabble.com/-s2--number-
5 matches
Mail list logo