There is a date validator. I am not sure why a birthdate is any different? How do you present your field to the user is it a one input text?
> -----Original Message----- > From: Erez Efrati [mailto:[EMAIL PROTECTED] > Sent: Wednesday, July 23, 2003 3:25 PM > To: 'Struts Users Mailing List'; [EMAIL PROTECTED] > Subject: RE: Birthdate validation ? > > Thanks for the quick reply, seems pretty easy but a bit long for just a > date. Anyway, is there a validator I could use or do I have to write one > of my own? And I mean Struts Validator.. > > Erez > > -----Original Message----- > From: Alex Shneyderman [mailto:[EMAIL PROTECTED] > Sent: Wednesday, July 23, 2003 8:21 PM > To: 'Struts Users Mailing List' > Subject: RE: Birthdate validation ? > > Be carefull with that because if you set Feb 29, 2003 your date is going > to be March 1, 2003 and Calendar will not say a thing. You should > probably fix a birthdate validator. > > > -----Original Message----- > > From: Adam Levine [mailto:[EMAIL PROTECTED] > > Sent: Wednesday, July 23, 2003 2:18 PM > > To: [EMAIL PROTECTED] > > Subject: Re: Birthdate validation ? > > > > > > Use Calendar, more than likely the concrete GregorianCalendar. > > > > Calendar.setField(<field>, <field value>); x3 > > > > Calendar.getTime() -> Date > > > > > > From: Erez Efrati <[EMAIL PROTECTED]> > > Reply-To: "Struts Users Mailing List" <[EMAIL PROTECTED]> > > To: 'Struts Users Mailing List' <[EMAIL PROTECTED]> > > Subject: Birthdate validation ? > > Date: Wed, 23 Jul 2003 21:03:53 +0200 > > > > I have a birth date field composed of three different fields of day > > month and a year. Now, what is the best way to receive those three and > > combine them into a java.sql.Date class and performing validation > using > > the validator? > > > > Hope someone been there done that.. > > > > Thanks, > > Erez > > > > > > > > --------------------------------------------------------------------- > > To unsubscribe, e-mail: [EMAIL PROTECTED] > > For additional commands, e-mail: [EMAIL PROTECTED] > > > > _________________________________________________________________ > > Add photos to your messages with MSN 8. Get 2 months FREE*. > > http://join.msn.com/?page=features/featuredemail > > > > > > --------------------------------------------------------------------- > > To unsubscribe, e-mail: [EMAIL PROTECTED] > > For additional commands, e-mail: [EMAIL PROTECTED] > > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

