cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From olivier demah <>
Subject Re: Problem about Sitmap
Date Tue, 27 Apr 2004 10:15:17 GMT
Jian Dai a écrit :

>Hi, all:
>I have a problem about how to use choose in sitmap. Here is the sample code
><map:match pattern="login.html">
>	<map:select type="session-attribute">
>	<map:parameter name="attribute-name" value="userid" />
>		<map:when test="null">
>			<map:redirect-to uri="login.html"/>
>		</map:when>
>		<map:otherwise>
>			<map:redirect-to uri="other.html"/>
>		</map:otherwise>
>	</map:select>
>  </map:match>
>Basically, I would this check session attribute of "userid". If it is not
>set (is null), it should direct to loginform.html.
>Otherwise, it go to other.html. My problem is that I do not know how to set
>the test value here to make it work.
>Obviously, test="null" does not work here.
>I will very appreciate if somebody can give me a clue about this. Many
>thanks in advance for the nice help.
if you need to manage access / session i recommand that you look at the 
Authentication FrameWork


To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message