Return-Path: Delivered-To: apmail-cocoon-dev-archive@www.apache.org Received: (qmail 24694 invoked from network); 27 Jun 2005 15:19:53 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 27 Jun 2005 15:19:53 -0000 Received: (qmail 51153 invoked by uid 500); 27 Jun 2005 15:19:49 -0000 Delivered-To: apmail-cocoon-dev-archive@cocoon.apache.org Received: (qmail 51110 invoked by uid 500); 27 Jun 2005 15:19:48 -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 51095 invoked by uid 99); 27 Jun 2005 15:19:48 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 27 Jun 2005 08:19:48 -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 [80.68.92.132] (HELO odoko.co.uk) (80.68.92.132) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 27 Jun 2005 08:19:47 -0700 Received: from elfriedeholmes.demon.co.uk ([80.177.165.206] helo=[10.0.0.3]) by odoko.co.uk with asmtp (Exim 4.34) id 1DmvaY-0002sv-8Z for dev@cocoon.apache.org; Mon, 27 Jun 2005 16:31:58 +0100 Message-ID: <42C018EA.7080107@odoko.co.uk> Date: Mon, 27 Jun 2005 16:19:06 +0100 From: Upayavira Organization: Odoko Ltd User-Agent: Mozilla Thunderbird 1.0.2 (X11/20050404) X-Accept-Language: en-us, en MIME-Version: 1.0 To: dev@cocoon.apache.org Subject: Re: Cocoon and Java References: <00a301c57b23$2eed1b90$d9c667c3@sintesinet.com> In-Reply-To: <00a301c57b23$2eed1b90$d9c667c3@sintesinet.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N Matteo Mancini wrote: > Hi all, > I need to know something about the best way to interact with Cocoon > object via java code. > More exactly I need to retrieve the Session Object in order to set and > get attributes. > > I tried some ways I found inside cocoon user guide but I faced > many problems because > Cocoon java packages have so many interfaces and classes. I tried those > dealing with HttpSession, HttpServlet and CocoonServlet classes. > Noone seems to work. I always catch a NullPointerException when I tried > to get a reference or instantiate them. > There should be somethng I miss !!!! > > Can anyone suggest me how to do? Firstly, ask on the Cocoon user's list, you'll get better answers there. Secondly, I'd suggest you state from where you want to get hold of your session. From flowscript? Within actions? Then people can advise you on the best approach. Regards, Upayavira