> > 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
; 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
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
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
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.
>
>
>
>
> _
--- 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
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
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
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
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
10 matches
Mail list logo