cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Tobia Conforto <>
Subject Re: Newbie question: <jx:choose/>
Date Fri, 19 Oct 2007 15:04:00 GMT
Marcus Wejderot wrote:
> I have tried all kinds of things in @test. What I really want to do
> is to check if the variable ${userid} is empty. How to do this?

I usually write:  test="${empty(userid)}"

empty() is native JX language for testing against most kinds of "empty",
such as (IIRC) 0, false, undefined, null, empty string, empty array...



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

View raw message