cocoon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Mats Norén <mats.no...@spectral.se>
Subject Sitemap question
Date Wed, 17 Jan 2001 17:20:56 GMT
More questions ;-)
I would like to be able to use my login-action to switch between two
different urls based on if the user has logged in or not.
I guess I could use a selector based version instead but I'm just curious
why the following doesn't work:

<map:match pattern="subscribe/login.html">
     <map:act type="login">
         <parameter name="logged_in" value="/cocoon/forms"/>
         <parameter name="not_logged_in" value="/cocoon/welcome"/>
     </map:act>
     <map:redirect-to uri="{uri}"/>
 </map:match>

Everything works up to the redirect part. Am I using the wrong way of
retrieving the uri value from the Map?
btw, the value of uri in my LoginAction is set correctly.

/Mats



Mime
View raw message