commons-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Henri Yandell <>
Subject Re: utils for notnulll
Date Mon, 07 Sep 2009 19:11:17 GMT
On Thu, Sep 3, 2009 at 7:39 AM, tubin gen<> wrote:
> I have  a form with start date and end date  fields,  form makes sense only
> if both the fields are present,any one of tow is null it is not right , I am
> wondering there is any   util which checks if both the values are not null ,
> I can write the code to check if start date is not null and  end date id
> null add error message , and vice versa , is there any such util present or
> do I have to write one ?

Nope. Things like Lang's StringUtils.isEmpty (null or empty String)
can be useful here but you would need to handle the &&; and Validator
can be useful in a larger architectural sense.


To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message