cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Christian Haul <>
Subject Re: ignore NULL values in XSP
Date Mon, 09 Dec 2002 10:52:08 GMT
On 09.Dec.2002 -- 10:18 AM, Robert S?semann wrote:
> Hello,
> can you imagine a shorter and more elegant way to ignore null values from
> adb?

esql provides a tag to check for null.

> What I mean is, that I only want to create an <LINKID> element when the
> database not returns a "null" or nothing"
> <xsp:attribute name="LINKID"><esql:get-string
> column="g.unterrubriklink_id"/></xsp:attribute>
> As I have many passages like that, I want to avoid the use of variables and
> ifs.
> How could I do that?

I would suggest to write your own logicsheet (that in turn may use
esql or any other logicsheet.

C h r i s t i a n       H a u l
    fingerprint: 99B0 1D9D 7919 644A 4837  7D73 FEF9 6856 335A 9E08

Please check that your question  has not already been answered in the
FAQ before posting.     <>

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

View raw message