Re: Date validation (month and day)

2007-09-05 Thread Hiroyuki Suzuki
My problem now is how to validate the entered date so that it will check if the EndDate is higher than the StartDate.. -- View this message in context: http://www.nabble.com/Date-validation-%28month-and-day%29-tf4376264.html#a12514017 Sent from the Struts - User mailing list archive at Nabble.c

Re: Date validation (month and day)

2007-09-05 Thread Hiroyuki Suzuki
I already solved it, in my form I added another field (maxDay1 and maxDay2) that will return OK and NG, i used this field in my validation.xml using validwhen, when the field is equal to OK, then it is valid, if it is NG, it is invalid.. This is my code, it also checks number of days in february

Re: Date validation (month and day)

2007-09-05 Thread Paul Benedict
You may be able to do it with a very complex validwhen validation. However, in these instances, it's best to write your own validator. Paul On 9/5/07, Laurie Harper <[EMAIL PROTECTED]> wrote: > > Hiroyuki Suzuki wrote: > > ello guys! > > > > How would I check my date input so that it will validat

Re: Date validation (month and day)

2007-09-05 Thread Laurie Harper
Hiroyuki Suzuki wrote: ello guys! How would I check my date input so that it will validate the maximum days per month. For example: Jan, Mar, May, Aug, Oct, Dec (31 days) April, June,Sept, Nov (30 days)... Please share me your ideas.. Addtional: Separate field name for month and day. There's

RE: Date validation

2006-11-22 Thread Strachan, Paul
Hi, what exact value did you enter with the date pattern MM/dd/yy? I dont like datePatternStrict because you have to enter the leading zero for dd and MM; and the year should format according to java.text.SimpleDateFormat rules. I use dd/MM/ (not strict) and the user can type the full yea

RE: Date validation

2006-11-22 Thread Gundersen, Richard
This is how I do it: dateFormat dd/MM/ ... ... ... datePattern ${dateFormat} -Original Message- From: vacak [mailto:[EMAIL PROTECTED] Sent: Wednesday, November 22, 2006 10:41 AM To: user@struts.apache.org Subject: Date validation Hi, I use

Re: Date Validation on the Clients side

2006-06-27 Thread The Jasper
ce. Are you interessted in having such a validation on the clients side. Best regards, Halgurt -Ursprüngliche Nachricht- Von: The Jasper [mailto:[EMAIL PROTECTED] Gesendet: Montag, 26. Juni 2006 17:50 An: Struts Users Mailing List Betreff: Re: Date Validation on the Clients side hi, Looking a

Re: Date Validation like "dd.MM.yyyy HH:mm"

2006-06-26 Thread Niall Pemberton
Commons Validator's JavaScript only support day/month/year validation. Niall On 6/26/06, Halgurt Mustafa Ali <[EMAIL PROTECTED]> wrote: Hello all, Well I am trying to validate a field on the clients side. The field schould be validatet as a date in this format: "dd.MM. HH:mm" but I saw th

Re: Date Validation on the Clients side

2006-06-26 Thread The Jasper
ect, it seems so, but whether or not, I am not sure. mvg, Halgurt PS:I appreciate your help, many thanks:-) -Ursprüngliche Nachricht- Von: The Jasper [mailto:[EMAIL PROTECTED] Gesendet: Montag, 26. Juni 2006 17:11 An: Struts Users Mailing List Betreff: Re: Date Validation on the Clients sid

Re: Date Validation on the Clients side

2006-06-26 Thread The Jasper
Hi, shot in the dark here, but have you tried datePatternStrict instead of datePattern? mvg, Jasper On 6/26/06, Halgurt Mustafa Ali <[EMAIL PROTECTED]> wrote: Hello All, I posted today the message below, unfortunately without any success. May be can somebody tell me if it is at all possible

Re: date validation

2005-06-06 Thread Riyaz Mansoor
no i did not; but i cannot use it as i want to allow single digit months/days in user input. more generally; i wud have expected the DateValidator to return FALSE if the user input is form "1980" for pattern "-MM-dd" anybody wanna weigh in? :) riyaz [EMAIL PROTECTED] wrote: Sorry i

Re: date validation

2005-06-06 Thread erikweber
Sorry if you get this twice. Did you try DatePatternStrict? Erik -Original Message- From: Riyaz Mansoor <[EMAIL PROTECTED]> Sent: Jun 6, 2005 4:49 PM To: Struts Users Mailing List Subject: date validation i've got a date validation set up with datePattern "-MM-dd", ie standard

RE: Date validation another question

2005-01-05 Thread Manisha Sathe
Thanks for the reply, do not know why the same is not working properly for me but will try it out again. regards Manisha Vaclavik Radek <[EMAIL PROTECTED]> wrote: Hi, this works fine for me (in validation.xml file). I see no problem with using datePattern... depends="required,date"> datePat

RE: Date validation another question

2005-01-05 Thread Vaclavik Radek
Hi, this works fine for me (in validation.xml file). I see no problem with using datePattern... datePattern dd.MM. Radek > -Original Message- > From: Manisha Sathe [mailto:[EMAIL PROTECTED] > Sent: We

RE: Date validation, multiple format

2004-12-03 Thread David G. Friedman
Is the date format changed because of the user's language selection or particular country? If so, validation supports country and language extensions for that purpose. Regards, David -Original Message- From: Mohd Amin [mailto:[EMAIL PROTECTED] Sent: Friday, December 03, 2004 4:23 AM To:

Re: Date Validation

2004-08-24 Thread bmf5
Thanks for the response. >You can specify the action > path in the tag instead of the form name, and the > javascript tag will work fine -- basically, html:javascript looks for > the literal value from " in the Validator XML config > -- whether it be a form name (ValidatorForm, DynaValidatorF

Re: Date Validation

2004-08-24 Thread Joe Germuska
The commons-validator date validation indeed, can only validate a single date pattern. Joe Hertz made a good point that you must have the multi-format parsing problem solved, so subclassing a ValidatorForm will probably be a good solution. However, I don't understand your other comment: I don'

RE: Date Validation

2004-08-24 Thread Jim Barrows
> -Original Message- > From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] > Sent: Tuesday, August 24, 2004 8:58 AM > To: Struts Users Mailing List > Subject: Date Validation > > > > > > > When I search the archive I get no results for the word "date" so here > goes. > > I've been us

RE: Date Validation

2004-08-24 Thread Joe Hertz
Let me ask you this: Presumably whatever the user enters is going to be used to construct a Date object. And if you do that, you presumably also know which of the various formats it got entered in. And if you have the logic somewhere to divine which format it's in, it sounds like you have what y