Re: date parsing/validation...newbie

2004-08-26 Thread Research labs
Hi, Please help me. I am trying to force users to enter dates in the format 23/JAN/2003, therefore, I have the setting below in the validator.xml. The maxlength bit works, but date parsing does not work, for example the validator does not complain if I enter an invalid date such as

Re: date parsing/validation...newbie

2004-08-26 Thread struts lover
Hi, I think it should be var-valuedd/MM//var-value instead of var-valuedd/MMM//var-value --- Research labs [EMAIL PROTECTED] wrote: Hi, Please help me. I am trying to force users to enter dates in the format 23/JAN/2003, therefore, I have the setting below in the

RE: date parsing/validation...newbie

2004-08-26 Thread Jim Barrows
-Original Message- From: struts lover [mailto:[EMAIL PROTECTED] Sent: Thursday, August 26, 2004 12:49 PM To: Struts Users Mailing List Subject: Re: date parsing/validation...newbie Hi, I think it should be var-valuedd/MM//var-value instead of var-valuedd/MMM/

Re: date parsing/validation...newbie

2004-08-26 Thread Erik Weber
Try datePatternStrict as the var-name instead of datePattern. Erik Research labs wrote: Hi, Please help me. I am trying to force users to enter dates in the format 23/JAN/2003, therefore, I have the setting below in the validator.xml. The maxlength bit works, but date parsing does not work,

Re: date parsing/validation...newbie

2004-08-26 Thread Research labs
Thanks Erik, 'would do so. --- Erik Weber [EMAIL PROTECTED] wrote: Try datePatternStrict as the var-name instead of datePattern. Erik Research labs wrote: Hi, Please help me. I am trying to force users to enter dates in the format 23/JAN/2003, therefore, I have the setting

Re: date parsing/validation...newbie 23/Jan/2004 and 23/JAN/2004

2004-08-26 Thread Research labs
Erik, I have just tried datePatternStrict; the client side validator now tells me that 23/Jan/2004 and 23/JAN/2004 are not dates. Thank you. Ola. --- Erik Weber [EMAIL PROTECTED] wrote: Try datePatternStrict as the var-name instead of datePattern. Erik Research labs wrote:

Re: date parsing/validation...newbie 23/Jan/2004 and 23/JAN/2004

2004-08-26 Thread Erik Weber
Hmm, sorry, I don't use client-side form validation. For one, I found that the scripts generated by the Validator plugin measured 38K, which is ridiculous. This is my validation.xml config for a date field that I tried for you: field property=myDate depends=date arg0 key=myMessageKey/ var

Re: date parsing/validation...newbie 23/Jan/2004 and 23/JAN/2004

2004-08-26 Thread O. Oke
Thanks for your advice, I will do as you suggested. I am confident that this will work. However, I am unable to test it straight away because I have just come accross another unrelated problem. Regards. Ola. --- Erik Weber [EMAIL PROTECTED] wrote: Hmm, sorry, I don't use client-side