Hi, Freddy.

- Use string properties in your for bean.
- If you use the validation framework, check whether that supports different number 
formats (for dates it does)
- parse the number according to the user's locale in your action class and pass that 
double on to your delegate

Hiran

-----------------------------------------
Hiran Chaudhuri
SAG Systemhaus GmbH
Elsenheimer Straße 11
80867 München
Phone +49-89-54 74 21 34
Fax   +49-89-54 74 21 99


 

> -----Original Message-----
> From: Freddy Villalba A. [mailto:[EMAIL PROTECTED] 
> Sent: Freitag, 8. Oktober 2004 12:49
> To: Struts Users Mailing List
> Subject: Localization
> 
> Hi,
> 
> I'm having troubles getting a Double property correctly 
> processed by Struts.
> The problem: I'm passing values with European number format 
> (decimal separator = '.') but Struts seems not to understand 
> this. The bizarre part is that, instead of throwing an 
> Exception, it assigns 0.0 to the property, therefore making 
> it almost impossible to detect this bug.
> 
> I'm almost sure my problem has to do with localization 
> settings. How can I configure Struts so that it can process 
> numbers following the European format instead of US'?
> 
> Regards,
> Freddy.
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to