cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Tobia Conforto <tobia.confo...@linux.it>
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...

See: http://commons.apache.org/jexl/reference/syntax.html


Tobia

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org


Mime
View raw message