cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jens Maukisch <>
Subject Re: authentification-fw; intermediate login page
Date Tue, 11 Jan 2005 20:03:29 GMT

> But I'd like to have the sitemap remember which URL the user requested.
> After having logged in he/she should be redirected to exact that page
> that was
> requested, not -- as in the example -- to a static page.

iirc the auth-action adds a request parameter to the login-url:
e.g.: login?resource=rederictedFromHere

you can do something like this then:

<map:match pattern="login">
<map:act type="auth-login">
<map:parameter name="handler" value="insurance"/>
<map:parameter name="parameter_userid" value="{request-param:name}"/>
<map:parameter name="parameter_password" value="{request-param:password}"/>
--> <map:redirect-to uri="{request-param:resource}"/>  <-- redirects
to the resource specified in the reqest param 'resource'

<map:generate src="content/login.xml"/>
<map:transform src="context:/resources/styles/svm-admin-style.xsl"/>
<map:serialize type="html"/>


* best regards
* Jens Maukisch              

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

View raw message