RE: Birthdate validation ?

2003-07-24 Thread Mark Galbreath
That's my point; why ru arguing with me? *hic* -Original Message- From: Adam L [mailto:[EMAIL PROTECTED] Sent: Thursday, July 24, 2003 8:54 AM To: Struts Users Mailing List Subject: Re: Birthdate validation ? Are you drunk again? (= It does understand leap years. 2004 is a

Re: Birthdate validation ?

2003-07-24 Thread Adam L
x27;s the purpose of lenient. - Original Message - From: "Mark Galbreath" <[EMAIL PROTECTED]> To: "'Struts Users Mailing List'" <[EMAIL PROTECTED]> Sent: Thursday, July 24, 2003 7:10 AM Subject: RE: Birthdate validation ? I don't have time f

RE: Birthdate validation ?

2003-07-24 Thread Mark Galbreath
ssage- From: Yee, Richard K,,DMDCWEST [mailto:[EMAIL PROTECTED] Sent: Wednesday, July 23, 2003 4:42 PM To: 'Struts Users Mailing List' Subject: RE: Birthdate validation ? Try it and find out for yourself. It does produce 3/1/2003. -Richard -Original Message- From: Mark Ga

RE: Birthdate validation ?

2003-07-24 Thread Mark Galbreath
Childers [mailto:[EMAIL PROTECTED] Sent: Wednesday, July 23, 2003 4:40 PM To: Struts Users Mailing List Subject: RE: Birthdate validation ? Because, except on leap years, there is no 2/29. Silly person. -= J > -Original Message- > From: Mark Galbreath [mailto:[EMAIL PROTECTED]

RE: Birthdate validation ?

2003-07-23 Thread Yee, Richard K,,DMDCWEST
Try it and find out for yourself. It does produce 3/1/2003. -Richard -Original Message- From: Mark Galbreath [mailto:[EMAIL PROTECTED] Sent: Wednesday, July 23, 2003 1:32 PM To: 'Struts Users Mailing List' Subject: RE: Birthdate validation ? What makes you say that?

RE: Birthdate validation ?

2003-07-23 Thread James Childers
Because, except on leap years, there is no 2/29. Silly person. -= J > -Original Message- > From: Mark Galbreath [mailto:[EMAIL PROTECTED] > Sent: Wednesday, July 23, 2003 3:32 PM > To: 'Struts Users Mailing List' > Subject: RE: Birthdate validation ? >

RE: Birthdate validation ?

2003-07-23 Thread Mark Galbreath
t; > 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 ? &g

RE: Birthdate validation ?

2003-07-23 Thread Jayaraman Dorai
. Jayaraman -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 da

Re: Birthdate validation ?

2003-07-23 Thread Rick Reumann
On Wed, Jul 23,'03 (09:37 PM GMT+0200), Erez wrote: > Since I am not an HTML wizard (yet :) ) my first attempt was as > follows: > > What also bugs me is the scriplet iteration using actual java code - > any idea how to do it more elegant? Just use the normal Struts validation framework. For va

Re: Birthdate validation ?

2003-07-23 Thread Rick Reumann
On Wed, Jul 23,'03 (09:03 PM GMT+0200), Erez wrote: > 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? Search th

RE: Birthdate validation ?

2003-07-23 Thread Erez Efrati
Shneyderman [mailto:[EMAIL PROTECTED] Sent: Wednesday, July 23, 2003 8:30 PM To: 'Struts Users Mailing List' Subject: RE: Birthdate validation ? 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?

RE: Birthdate validation ?

2003-07-23 Thread Alex Shneyderman
sers 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 &

RE: Birthdate validation ?

2003-07-23 Thread Erez Efrati
, 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-

RE: Birthdate validation ?

2003-07-23 Thread Alex Shneyderman
8 PM > To: [EMAIL PROTECTED] > Subject: Re: Birthdate validation ? > > > Use Calendar, more than likely the concrete GregorianCalendar. > > Calendar.setField(, ); x3 > > Calendar.getTime() -> Date > > > From: Erez Efrati <[EMAIL PROTECTED]> >

Re: Birthdate validation ?

2003-07-23 Thread Adam Levine
trigger happy send am I. then with your (java.util)Date new java.sql.Date( utilDate.getTime() ); From: "Adam Levine" <[EMAIL PROTECTED]> Reply-To: "Struts Users Mailing List" <[EMAIL PROTECTED]> To: [EMAIL PROTECTED] Subject: Re: Birthdate validation ? Date:

Re: Birthdate validation ?

2003-07-23 Thread Adam Levine
Use Calendar, more than likely the concrete GregorianCalendar. Calendar.setField(, ); x3 Calendar.getTime() -> Date From: Erez Efrati <[EMAIL PROTECTED]> Reply-To: "Struts Users Mailing List" <[EMAIL PROTECTED]> To: 'Struts Users Mailing List' <

Birthdate validation ?

2003-07-23 Thread Erez Efrati
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 --