cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Antonio Gallardo <agalla...@agssa.net>
Subject Re: jx:choose problem
Date Fri, 12 May 2006 22:12:27 GMT
Hi Sanket,

Try,
 <jx:when test="${cocoon.parameters.country=='global'}">

or

 <jx:when test="${cocoon.parameters.country.equals('global')}">

Best Regards,

Antonio Gallardo

Sanket Pattekar escribió:
> Hi,
>
> In my sitemap I have a parameter defined as
>
> <map:parameter name="country" value="gb"/>.
>
> I am using this in the xml file using jxtemplate
>
> <jx:choose>
>     <jx:when test="${cocoon.parameters.country}=='global'">
>         Step 1
>     </jx:when>
>     <jx:otherwise>
>         Step 2
>     </jx:otherwise>
> </jx:choose>
>
> So according to the logic step 2 should get executed. But in my case
> Step 1 gets executed. Am I using jx template generator incorrectly


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


Mime
View raw message