cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Christoph Hermann <christoph.herm...@tu-clausthal.de>
Subject Basic Session and encode-url example
Date Mon, 13 Dec 2004 13:29:31 GMT
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hello List,

i'm trying to get a very simple session example working with cocoon, but 
when i turn cookies off my session is lost even when i use 
<map:transform type="encodeURL"> in my sitemap.

Can you give me any hints why this (encodeurl) is not working? The 
Coocoon examples (portal-fw) or my self-made authentication example 
work with encodeURL (when i'm logged in).

In my sitemap i have the followind 2 pages:

- ---snip---
     <map:match pattern="page1">
          <map:generate src="docs/page1.xml"/>
          <map:transform type="session"/>
          <map:transform src="stylesheets/simple-page2html.xsl"/>
          <map:transform type="encodeURL"/>
          <map:serialize />
      </map:match>

      <map:match pattern="page2">
          <map:generate src="docs/page2.xml"/>
          <map:transform type="session"/>
          <map:transform src="stylesheets/simple-page2html.xsl"/>
          <map:transform type="encodeURL"/>
          <map:serialize />
      </map:match>
- ---snap---

The pages look like this:

- ---snip---
<page xmlns:session="http://apache.org/cocoon/session/1.0">
 <title>Request test</title>
 <content>
   <linkbar/>
   <para>
     <a href="page1">Page 1</a> -
     <a href="page2">Page 2</a><br />
   </para>
   <para>
      <session:createcontext name="guschtel"/>
      <pre>
          <session:getxml context="guschtel" path="/" />
      </pre>
      <session:setxml context="guschtel" path="/">
            Page: Page1
      </session:setxml>
   </para>
 </content>
</page>
- ---snap---

Any Hint on what i'm doing wrong would really be appreciated.

Thanks in Advance
Christoph
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.4 (GNU/Linux)

iD8DBQFBvZlCH8qhdtR4sUIRAs4eAKCfrpqYTSuc+URLnmyfwn/kDd8SXwCgxHDi
JQGGcUCK/BrZw/X20jK+gb4=
=X7tR
-----END PGP SIGNATURE-----

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


Mime
View raw message