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

Re: empty operator

2007-08-16 Thread Laszlo Borsos
; 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 not null or empty? > > I wo

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 proper

empty operator

2007-08-16 Thread Laszlo Borsos
In OGNL, how can I assert that a String property is not null or empty? I would like this functionality: ${!empty bean.string} kuvera - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED

Re: S2 substitute for jstl empty operator

2007-06-18 Thread Zoran Avtarovski
The point being empty covers all the issues (null, empty string, empty list or array). Too much sugar in our diet is my guess. Z. > --- Roberto Nunnari <[EMAIL PROTECTED]> wrote: >> ..and how's about empty strings? > > test='stringVar.length() > 0' > > d. > > > > > _

Re: S2 substitute for jstl empty operator

2007-06-18 Thread Dave Newton
--- Roberto Nunnari <[EMAIL PROTECTED]> wrote: > ..and how's about empty strings? test='stringVar.length() > 0' d. Building a website is a piece of cake. Yahoo! Small Business gives you all the tools

Re: S2 substitute for jstl empty operator

2007-06-18 Thread Roberto Nunnari
Hello Guillame. That is intended to check a List is empty, but it doesn quite substitute the empty operator.. The empty operator tests for null, empty strings and empty arrays.. I must then assume there's no single substitute? ..and how's about empty strings? Best regards. Guill

Re: S2 substitute for jstl empty operator

2007-06-18 Thread Guillaume Carré
2007/6/16, Roberto Nunnari <[EMAIL PROTECTED]>: humm... it seams that: suffices for testing null.. is that the correct usage? Best practices for the original problem? have you tried this? -- Guillaume Carré - To unsubscribe

Re: S2 substitute for jstl empty operator

2007-06-16 Thread Roberto Nunnari
Roberto Nunnari wrote: Hello again.. Another question.. in JSTL I can write: ... The empty operator tests for null, empty strings and empty arrays.. if in S2 I type: ... it doesn't work. humm... it seams that: suffices for testing null.. is that the correct usage? Best practices fo

S2 substitute for jstl empty operator

2007-06-16 Thread Roberto Nunnari
Hello again.. Another question.. in JSTL I can write: ... The empty operator tests for null, empty strings and empty arrays.. if in S2 I type: ... it doesn't work. Is there in S2 a substitute for the JSTL EL operator empty? And for the ! operator? Sorry for all the questions, but I cou