struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "David Derry" <dde...@acm.org>
Subject Re: Validating DATE field
Date Sun, 08 Sep 2002 12:49:57 GMT
Actually, it's a test for ! isBlankOrNull(). The block of code encased by
that test didn't extend quite far enough. A statement that should have been
included was outside the closing '}'. As i mentioned, it was fixed in the
nightly shortly after b2. Or you can patch your own source by just moving
the closing '}' and recompiling stuts (this is what I did; not that big a
deal).

Dave

----- Original Message -----
From: "adam kramer" <adam@monkey.org>


>
> It probably has something to do with all the validation types in
> validator-rules.xml being dependent on required.
>
> -adam k.
>
> On Fri, 6 Sep 2002, Dave Derry wrote:
>
> > This is a problem that has been brought up several times. I don't know
about
> > b1 since I've just started using Validator (with b2), but I do know that
the
> > problem has been fixed in CVS. It is a very simple patch, that you can
> > easily make yourself if you don't want to get a nightly build. Check the
CVS
> > repository for StrutsValidator.java. You just need to move a } in
> > validateDate.
> >
> > Dave D
> >
> > ----- Original Message -----
> > From: "Drago Jenko" <djenko@zav-triglav.si>
> >
> >
> > Hi,
> >
> > Does someone has problem using validating date field which is not
> >
> > required. I always get error when the field is empty,  that is not a
proper
> > date.
> >
> > I started writing program under Struts 1.1.b1 and  it worked , but when
I
> > changed to Struts 1.1.b2 this problem has occured.
> >



--
To unsubscribe, e-mail:   <mailto:struts-user-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:struts-user-help@jakarta.apache.org>


Mime
View raw message