cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Joerg Heinicke <joerg.heini...@gmx.de>
Subject Re: pass session-parameter to another xsp-file
Date Fri, 11 Jul 2003 21:44:11 GMT
No. How should this be possible? There would be no difference between a 
request of a second user and the request from the same user from the 
second frame.

After login you must reload all frames and use either cookies for the 
session or link rewriting.

Joerg

Sliman Bouchareb wrote:
> hello,
> I am beginner in cocoon i have the following problem:
> 
> I have this sitemap:
> 
> <map:match pattern="start">
>        <map:act type="session-validator">
>        <map:parameter name="descriptor"
> value="context://protected//descriptors/params.xml"/>
>           <map:parameter name="validate"
> value="username,department_id,theme"/>
>         <map:generate src="docs/main.xsp" type="serverpages"/>
>         <!-- <map:transform src="stylesheets/test.xsl" type="xslt"/> -->
>         <map:serialize type="html"/>
>         </map:act>
>         <map:redirect-to uri="login"/>
> </map:match>
> 
> in main.xsp we build a frame:
> 
> <frameset rows="100,*" borders="1">
>         <frame src="myhomepagemenu" name="menu"/>
>         <frame src="home/home.section" name="main"/>
> </frameset>
> 
> we call home/home.section so me must define a pipeline for that:
> 
> <map:match pattern="*/*.*">
>         <!-- first validate whether user has logged in -->
>         <map:act type="session-validator">
>           <map:parameter name="descriptor"
> value="context://protected//descriptors/params.xml"/>
>           <map:parameter name="validate"
> value="username,department_id,theme"/>
> 
> 
>        <map:generate src="docs/{../1}/{../2}.xml"/>
>         <map:transform src="stylesheets/page.xsl">
>           <map:parameter name="section" value="{../1}"/>
>           <map:parameter name="toc-file" value="../docs/toc.xsp"/>
>           <map:parameter name="base-url" value="/cocoon/protected"/>
>         </map:transform>
> 
>         <map:transform src="stylesheets/menupage.xsl">
>           <map:parameter name="section" value="{../1}"/>
>           <map:parameter name="request-url" value="{../2}.{../3}"/>
>           <map:parameter name="toc-file" value="../docs/toc.xsp"/>
>           <map:parameter name="css-stylesheet" value="default.css"/>
>           <map:parameter name="base-url" value="/cocoon/protected"/>
>         </map:transform>
>         <map:serialize/>
>         </map:act>
>         <!-- something was wrong, redirect to login page -->
>         <map:redirect-to uri="login"/>
>       </map:match>
> 
> 
> the problem is that i have the session-parameter (like username etc) in
> frame 1, but i needed also in frame 2, but there i can only do 1 generator
> (<map:generate src="docs/{../1}/{../2}.xml"/>), i need the session-parameter
> in the file tox.xsp, is there a way to that ?
> 
> thank you very much.
> Slim


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


Mime
View raw message