Hi Laurie,
It will be too difficult to use mask with javascript validations. How
javascript will handle locales.
For eg in some countries decimal is represented by comma

/Ashwani

-----Original Message-----
From: news [mailto:[EMAIL PROTECTED] On Behalf Of Laurie Harper
Sent: Tuesday, February 21, 2006 2:53 AM
To: user@struts.apache.org
Subject: Re: i18n with javascript validations

Kalra, Ashwani wrote:
> Hi,
> My project is using javascript validations generated through struts
> validator. I want to do some currency validations based on the
> language/country. Is it possible?

Yes, it's possible, though Struts / Commons Validator don't include
currency validation rules. You can specify your validation rules using
'mask', if you can express them with regular expressions. Otherwise
you'll need to create your own validation rule(s) and add them to the
base set in validator-rules.xml.

L.


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


This message contains information that may be privileged or confidential and is 
the property of the Capgemini Group. It is intended only for the person to whom 
it is addressed. If you are not the intended recipient,  you are not authorized 
to read, print, retain, copy, disseminate,  distribute, or use this message or 
any part thereof. If you receive this  message in error, please notify the 
sender immediately and delete all  copies of this message.


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

Reply via email to