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 f

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: datePatternStrict dd/MMM/ I tested it

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

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, ther

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 wor

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 > > dd/MM/ > inste

Re: date parsing/validation...newbie

2004-08-26 Thread struts lover
Hi, I think it should be dd/MM/ instead of dd/MMM/ --- 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 validator.xml. The maxlength bit > work

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 23/JJJ/199

Re: date parsing/validation

2004-08-23 Thread Research labs
Noted. Thank you very much. --- Erik Weber <[EMAIL PROTECTED]> wrote: > Looks to me like you probably want dd/MM/. > > Erik > > > Erik Weber wrote: > > > Please see the API documentation for > java.text.SimpleDateFormat's > > pattern syntax, which you are violating with > DD/MON/. "

Re: date parsing/validation

2004-08-23 Thread Erik Weber
Looks to me like you probably want dd/MM/. Erik Erik Weber wrote: Please see the API documentation for java.text.SimpleDateFormat's pattern syntax, which you are violating with DD/MON/. "MON" is not an acceptable token, and DD is day-in-year, not day in month. Erik Research labs wrote: C

Re: date parsing/validation

2004-08-23 Thread Erik Weber
Please see the API documentation for java.text.SimpleDateFormat's pattern syntax, which you are violating with DD/MON/. "MON" is not an acceptable token, and DD is day-in-year, not day in month. Erik Research labs wrote: Can anyone please tell what I can do in order to stop users from enteri

date parsing/validation

2004-08-23 Thread Research labs
Can anyone please tell what I can do in order to stop users from entering invalid dates. The validator does not raise an error if a user enters 33 as ad day, as in this sample date: 33/jan/2000. I am using Struts validator, which is setup as follows: