cocoon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Vadim Gritsenko <vadim.gritse...@verizon.net>
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 http://marc.theaimsgroup.com/?t=106931803600003&r=1&w=2.)


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>;

[1] http://marc.theaimsgroup.com/?l=xml-cocoon-users&m=106932338722437&w=2


Vadim



Mime
View raw message