cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Kai Mütz <kmu...@web.de>
Subject RE: passing parameters through authentication?
Date Thu, 23 Mar 2006 10:21:24 GMT
What do you want to do with this redirect? Something like this:

<map:redirect-to uri="edit?dtext={request-param:dtext}"/>

I think, You can not specify a parameter to a redirect.
http://cocoon.apache.org/2.1/userdocs/concepts/redirection.html

> -----Original Message-----
> From: users-return-86057-kmuetz=web.de@cocoon.apache.org
> [mailto:users-return-86057-kmuetz=web.de@cocoon.apache.org]On Behalf Of
> Fernando Mato Mira
> Sent: Thursday, March 23, 2006 11:02 AM
> To: users@cocoon.apache.org
> Subject: passing parameters through authentication?
> 
> 
> I can't seem to pass parameters to the application through the 
> authentication point. Tge "dtext" parameter is not
> passing through to the "edit" URI.
> 
>      <map:match pattern="do-login">
>           <!-- if we are already logged in, redirect to the protected 
> document -->
>           <map:act type="auth-loggedIn">
>                <map:parameter name="handler" value="multihandler"/>
>                <map:redirect-to uri="edit"/>
>           </map:act>    
>           <!-- try to login -->
>           <map:act type="auth-login">
>               <map:parameter name="handler" value="multihandler"/>
>               <map:parameter name="parameter_name" 
> value="{request-param:username}"/>
>               <map:parameter name="parameter_password" 
> value="{request-param:password}"/>
>               <map:parameter name="parameter_token" 
> value="{request-param:ugatok}"/>
>               <map:redirect-to uri="edit">
>                   <map:parameter name="dtext" 
> value="{request-param:dtext}"/>
>               </map:redirect-to>
>           </map:act>
>           <!-- something was wrong, try it again -->
>           <map:redirect-to uri="login"/>
>       </map:match>
> 
> Thanks
> 
> -- 
> --
> Fernando D. Mato Mira                         matomira@acm.org
> Thomson Corporation Switzerland AG
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
> For additional commands, e-mail: users-help@cocoon.apache.org
> 
> 

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


Mime
View raw message