Re: validating dates as Dates, or Strings?

2003-09-14 Thread Ted Husted
Matt Raible had an article about how to compare if two Strings match. I was going to see if you could use the same technique here, but it's down right now. http://tinyurl.com/6jnv Though, you don't need to use the Struts Validator for everything. You can also call your own custom validations t

validating dates as Dates, or Strings?

2003-09-12 Thread Mick Knutson
I have a Value Object with java.sql.Dates, and I use String's on the front end. I do a simple conversion, but I now need to compare a starting and ending Date. How can I do this with the Validation? --- Thanks Mick Knutson http://www.baselogic.com +001(805) 563-0666 Office +001 (708) 570-2772 Fax

Re: Struts validator, validating dates with pattern.

2003-06-18 Thread Eirik Kjølsrud
Hi Nagendra, and thanks for your suggestion ! That "kinda" worked... Using datePatternStrict dd.MM. resulted in the datefield being correctly validated to the dd.MM. format, but I would also like it to allow both these formats of date : 08.1

Re: Struts validator, validating dates with pattern.

2003-06-18 Thread Nagendra Kumar O V S
: Wednesday, June 18, 2003 04:13:45 PM To: [EMAIL PROTECTED] Subject: Struts validator, validating dates with pattern.  Hi.I'm using Struts 1.1 RC1 and wants to validate a date in an input field asrequired and date. The part in validation.xml describin

Struts validator, validating dates with pattern.

2003-06-18 Thread Eirik Kjølsrud
Hi. I'm using Struts 1.1 RC1 and wants to validate a date in an input field as required and date. The part in validation.xml describing the validation is : datePattern dd.MM. The required field triggers, but regardless of value in the date field, the date va

Re: Validating dates

2001-04-02 Thread John Raley
ECTED]> > To: <[EMAIL PROTECTED]> > Sent: Thursday, March 29, 2001 2:53 PM > Subject: Validating dates > > > > > > > Does anyone have a code example for validating a date field in the validate > > method of actionform? Actually, a date in

Re: Validating dates

2001-03-30 Thread William Jaynes
Here are some utility methods I use for date validation and rendering to and from strings. Nothing fancy. - Original Message - From: <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Thursday, March 29, 2001 2:53 PM Subject: Validating dates > > > Does anyone ha

Re: Validating dates

2001-03-29 Thread David Winterfeldt
I've been working on some validation routines. There is a date one in com.wintecinc.struts.validation.Validator in the src/share directory. The date validation doesn't support multiple locales though, but you could enhance it. You can get to the source at (more recent builds). http://home.earth

Validating dates

2001-03-29 Thread Donnie_Hall
Does anyone have a code example for validating a date field in the validate method of actionform? Actually, a date in a string attribute. thanks in advance for your help, Donnie Hall