2003. janu�r 23. 07:31 d�tummal Suresh Addagalla ezt �rtad:
> Sorry to repost, but I didn't get any replies so far :(
>
> Hi,
>
> I haven't been able to successfully use the Validator for doing Date
> validations with struts 1.1 b3.
>
> I need to localize the date format. Since Validator would anyway take
> the default locale and the SHORT form of the date from the system, I
> have decided that I will use the short format in all Locales. But I am
> facing the following problems.


You cannot parse the date client side as you don't know the current locale the 
client has choosen and if you knew you couldn't find out the date pattern for 
the locale either. So you do not have pattern to match with.

Remove the javascript section from validator-rules.xml since it works only if 
you specify datePatternStrict. If you remove it, the validation will occur 
server side only. And server-side validation uses the current client locale's 
date format, afaik.

Hth,

Tib

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

Reply via email to