Return-Path: Delivered-To: apmail-cocoon-dev-archive@www.apache.org Received: (qmail 90879 invoked from network); 29 Jun 2004 09:19:36 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur-2.apache.org with SMTP; 29 Jun 2004 09:19:36 -0000 Received: (qmail 86161 invoked by uid 500); 29 Jun 2004 09:19:59 -0000 Delivered-To: apmail-cocoon-dev-archive@cocoon.apache.org Received: (qmail 86088 invoked by uid 500); 29 Jun 2004 09:19:58 -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 Delivered-To: mailing list dev@cocoon.apache.org Received: (qmail 86072 invoked by uid 99); 29 Jun 2004 09:19:58 -0000 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests=FORGED_RCVD_HELO X-Spam-Check-By: apache.org Received: from [81.56.241.65] (HELO mail.anyware-tech.com) (81.56.241.65) by apache.org (qpsmtpd/0.27.1) with ESMTP; Tue, 29 Jun 2004 02:19:57 -0700 Received: from apache.org (firewall.anyware [10.1.0.254]) by mail.anyware-tech.com (Postfix) with ESMTP id 990825EBBF for ; Tue, 29 Jun 2004 11:19:12 +0200 (CEST) Message-ID: <40E13410.70005@apache.org> Date: Tue, 29 Jun 2004 11:19:12 +0200 From: Sylvain Wallez User-Agent: Mozilla/5.0 (Macintosh; U; PPC Mac OS X Mach-O; en-US; rv:1.6) Gecko/20040113 X-Accept-Language: fr, en, en-us MIME-Version: 1.0 To: dev@cocoon.apache.org Subject: Re: Passing Java objects References: <40E10FB2.7030108@anu.edu.au> In-Reply-To: <40E10FB2.7030108@anu.edu.au> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked X-Spam-Rating: minotaur-2.apache.org 1.6.2 0/1000/N Scott Yeadon wrote: > Hello, > > Could someone tell me if it's possible to pass Java objects around as > session information (for example an object containing information (or > other objects) such as userid, timing, database connection, etc). From > looking at the documentation everything looks like it must be > converted to XML form. Can anyone point me to the releavnt areas of > the documentation, as the session information only talks about XML or > pointing to a Java class that reads data from db/file. It's unlikely > Cocoon is any good to me if Java objects cannot be passed around > between pages in the same way that JSP/Servlets can pass this > information around in their request objects. It seems you have looked at the "session framework", which is a convenience module allowing to manipulate session information as XML. Cocoon itself imposes absolutely no restriction on what can be stored as session attributes. You can get the request object using the ObjectModelHelper class (in Java) or "cocoon.request" (in flowscript) and from there on use the traditional servlet attribute methods. Sylvain -- Sylvain Wallez Anyware Technologies http://www.apache.org/~sylvain http://www.anyware-tech.com { XML, Java, Cocoon, OpenSource }*{ Training, Consulting, Projects }