cocoon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Vadim Gritsenko <>
Subject Re: XSP "official" position
Date Sat, 22 Nov 2003 02:49:33 GMT
Joerg Heinicke wrote:

> (By the way, the simplification to
> <xsp:logic>
>         if (somecondition()) {
>                 <true_tag/>
>         } else {
>                 <false_tag/>
>         }
> </xsp:logic>
> is exactly what does not work at Cocoon and was the reason for the 
> problem at

It *does* work. Everytime. Try it, if you do not believe me.

PS Do not forget that <xsp:expr> must be used in content mode, and not 
in language mode; to switch to content mode from the language mode you 
either (a) open a tag, (b) use <xsp:content> if you don't want a tag.

PPS Answering your question in the [1], here is trivial and commonly 
used use case:
    String s = <xsp-request:get-parameter name="name"/>;
Which is identical to:
    String s = <xsp-expr>request.getParameter("name")</xsp:expr>;



View raw message