hi;
in our project. I defined a User class that holds cultural information, date
format, number patterns, etc, 
application starts up with a given default user.  When a user logons to the
system, the  user interface guis  is repainted regarding that logged user's
cultural info.

-----Original Message-----
From: Kalra, Ashwani [mailto:[EMAIL PROTECTED]
Sent: Friday, November 25, 2005 2:03 PM
To: user@struts.apache.org
Subject: Strategy for javascript validation with i18n



Hi all,
In my multilingual project, I want to use my own custom Javascript
validation instead of one provided by strusts 1.1
I have to do this because its not working in many cases with weblogic
workshop, specially the indexed fields.

My main concern is How can I provide a simple java script API which
should take care
1. Getting the message from resource bundle
2. Substituting the message parameters
3. Doing different validation  for different countries for the same
field. For eg dd/mm/yyyy for UK, but mm/dd/yyyy for US

1 and 2 can be done with I18n tag, but 3rd  is looking to be difficult
as I want to use the common javascript method.

Any have similar experience, please share with me.

__________________
Thanks
Ashwani Kalra





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