cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Lionel Barth <lba...@hachette-livre.fr>
Subject cookie-selector
Date Thu, 26 Apr 2007 14:32:10 GMT
Hi,

Is there a way to use the cookie-selector to check if a cookie exist, 
whatever value it has.

I tried :

   <map:select type="cookie-selector">
     <map:parameter name="cookie-name" value="myCookieID"/>
     <map:when test="">
       <map:generate src="nothing.xml"/>
     </map:when>
     <map:otherwise>
       <map:generate type="wsproxy" 
src="{global:ws-url}Id={request:cookieMap/myCookieID/value}"/>
     </map:otherwise>
   </map:select>

but it works if the cookie exist and has an empty value, not if the 
cookie does not exist.

Regards,
Lionel



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


Mime
View raw message