Title: Session attributes from JXTemplate

Hello all
        It seems that I am missing something here:
        I would like to access some session data from JXTemplate in my application.
        Here is my sitemap:
    <map:pipeline>
      <!--map:act type="session">
        <map:parameter name="action" value="create"/>
      </map:act-->
        <map:match pattern="session.html">
          <map:generate type="jx" src="">
          <map:serialize/>
        </map:match>

        When I call session.html a session is started , and than JX generator is generating the session.html file :
<?xml version="1.0" encoding="ISO-8859-7"?>
<html xmlns:jx="http://apache.org/cocoon/templates/jx/1.0">
<body>
session debug file
time : ${cocoon.session.creationTime} ID: ${cocoon.session.id}
<br/>
new ?
<jx:if test="${cocoon.session.isNew()}">
        session is new.
</jx:if>
</body>
</html>

No - no matter what I do I cannot get the session data. I am not even sure it is opened ! On the other hand - I also do not get "session is new" as well…

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html xmlns:jx="http://apache.org/cocoon/templates/jx/1.0">
<body>
session debug file
locale:  time :  ID:
<br>
new ?
</body>
</html>

What am I missing here ?

Thank you !

Elad Messing
Software Developer
European Media Laboratory GmbH
Schloss-Wolfsbrunnenweg 33
D-69118 Heidelberg

Reply via email to