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]
Sent
-
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 Galbreath [mailto
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 for frivolous exercises, but seeing how easy it is to
accommodate leap years
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 leap
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
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
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: Wed, 23 Jul 2003 13:18:19 -0500
Use
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
, 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
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
]
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?
-Original Message-
From: Erez Efrati
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 the
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
.
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
date. Anyway
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
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 ?
What makes you say that? Why would
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? Why would
17 matches
Mail list logo