If you want to try something new you can use AJAX in that way that your validation is done on the server but you still can have (more or less) instant javascript feedback without resubmitting the form. So you only have a thin javascript interface but your validation code is in Java on the server.
Bernhard > -----Ursprüngliche Nachricht----- > Von: Kalra, Ashwani [mailto:[EMAIL PROTECTED] > Gesendet: Freitag, 25. November 2005 13:03 > An: user@struts.apache.org > Betreff: 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]