Hi all,

I have in my template page this jxtemplate code, the problem is that the "
do some thing " action and " do other thing " action are the two performed.

<jx:set var="role"

value="#{getAttribute($session,'user-role-id')}"/>



<jx:choose xmlns:jx="http://apache.org/cocoon/templates/jx/1.0";>

<jx:when test="${role == 'admin'}">

</jx:when>

do something

<jx:otherwise>

do other thing

</jx:otherwise>

</jx:choose>


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to