cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From olivier demah <ode...@messagio.com>
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.
>
>Jack
>
>  
>
if you need to manage access / session i recommand that you look at the 
Authentication FrameWork
http://cocoon.apache.org/2.1/developing/webapps/authentication.html

regards.


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


Mime
View raw message