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