Return-Path: Delivered-To: apmail-cocoon-dev-archive@www.apache.org Received: (qmail 60465 invoked from network); 11 Jul 2005 08:35:20 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 11 Jul 2005 08:35:20 -0000 Received: (qmail 17222 invoked by uid 500); 11 Jul 2005 08:35:16 -0000 Delivered-To: apmail-cocoon-dev-archive@cocoon.apache.org Received: (qmail 17103 invoked by uid 500); 11 Jul 2005 08:35:14 -0000 Mailing-List: contact dev-help@cocoon.apache.org; run by ezmlm Precedence: bulk list-help: list-unsubscribe: List-Post: Reply-To: dev@cocoon.apache.org List-Id: Delivered-To: mailing list dev@cocoon.apache.org Received: (qmail 17090 invoked by uid 99); 11 Jul 2005 08:35:13 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 11 Jul 2005 01:35:13 -0700 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received-SPF: pass (asf.osuosl.org: local policy) Received: from [212.126.215.61] (HELO ktaemail01.villa-bosch.de) (212.126.215.61) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 11 Jul 2005 01:35:09 -0700 content-class: urn:content-classes:message MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable X-MimeOLE: Produced By Microsoft Exchange V6.0.6603.0 Subject: AW: Inconsistent behavior of session handling Date: Mon, 11 Jul 2005 10:34:54 +0200 Message-ID: <4202DDA3828BD24D9381128D46B13D2B01ED87CD@ktaemail01.villa-bosch.de> X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: Inconsistent behavior of session handling Thread-Index: AcWERvIM5IA4gLstT+CAaefGuU9vxQBq4zHw From: "Messing, Elad" To: X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N Thank you Reinhard ! Words perfect now :) Is it documented somewhere ?=20 Should I expect a change soon, so that I will have to change everything = back to coccon.session.blah ?=20 Thanks! Elad -----Urspr=FCngliche Nachricht----- Von: Reinhard Poetz [mailto:reinhard@apache.org]=20 Gesendet: Samstag, 9. Juli 2005 07:28 An: dev@cocoon.apache.org Betreff: Re: Inconsistent behavior of session handling Messing, Elad wrote: > Hello all > I have encountered an inconsistent behavior of cocoon in relation to=20 > session handling. > First I had this in my sitemap : >=20 > > > > > > > > > > > =09 > testSession: >=20 > function testSession(){ > cocoon.sendPage("session.html"); > } >=20 > and in session.html I used JX to print the some session > information: > ${cocoon.session.getAttribute("elad")} > ${cocoon.session.creationTime} >=20 > Everything works fine. >=20 >=20 > When I change the sitemap to : > > > > > > > >=20 > I get the session.html file empty.. Like the session is not there=20 > anymore because I didn't go through flow script ?? >=20 > Is this a bug ? Feature ? I guess it's not a bug in Cocoon session handling but a problem with an = inconsistency in the not-refactored version of jx-template. your example = should work fine with jx-template in trunk but not with jx-template in = 2.1. there you should try ${session.getAttribute("elad")} instead of = ${cocoon.session.getAttribute("elad")}. HTH --=20 Reinhard P=F6tz Independent Consultant, Trainer & (IT)-Coach=20 {Software Engineering, Open Source, Web Applications, Apache Cocoon} web(log): http://www.poetz.cc --------------------------------------------------------------------