Re: empty operator

2007-08-16 Thread Chris Pratt
> > In OGNL, how can I assert that a String property is not null or empty? This question get's asked A LOT!! I think the OGNL developers ought to take notice and consider adding an empty operator, or at least address why this is such a bad idea. (*Chris*) --

Re: empty operator

2007-08-16 Thread Laszlo Borsos
Thank you. Does that mean that under OGNL I must do two checks? bean.string neq null and bean.string.length neq 0 instead of ${!empty bean.string} Tiresome... Al Sutton wrote: > I tend to use > > empty eq null > > To test if it's null and; > > empty neq null > > For non-null > > -Original

RE: empty operator

2007-08-16 Thread Al Sutton
I tend to use empty eq null To test if it's null and; empty neq null For non-null -Original Message- From: Laszlo Borsos [mailto:[EMAIL PROTECTED] Sent: 16 August 2007 08:04 To: Struts Users Mailing List Subject: empty operator In OGNL, how can I assert that a String property is no