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
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
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
: 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
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
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
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
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
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
9 matches
Mail list logo