Return-Path: Delivered-To: apmail-cocoon-users-archive@www.apache.org Received: (qmail 88336 invoked from network); 19 Jan 2007 10:05:04 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 19 Jan 2007 10:05:04 -0000 Received: (qmail 12532 invoked by uid 500); 19 Jan 2007 10:05:06 -0000 Delivered-To: apmail-cocoon-users-archive@cocoon.apache.org Received: (qmail 12482 invoked by uid 500); 19 Jan 2007 10:05:05 -0000 Mailing-List: contact users-help@cocoon.apache.org; run by ezmlm Precedence: bulk list-help: list-unsubscribe: List-Post: Reply-To: users@cocoon.apache.org List-Id: Delivered-To: mailing list users@cocoon.apache.org Received: (qmail 12471 invoked by uid 99); 19 Jan 2007 10:05:05 -0000 Received: from herse.apache.org (HELO herse.apache.org) (140.211.11.133) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 19 Jan 2007 02:05:05 -0800 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received-SPF: pass (herse.apache.org: local policy) Received: from [213.82.189.78] (HELO mail.cedac.com) (213.82.189.78) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 19 Jan 2007 02:04:56 -0800 Received: from sviluppo15 ([172.16.1.1]) by mail.cedac.com (Lotus Domino Release 6.5.4FP2) with SMTP id 2007011910582417-1533 ; Fri, 19 Jan 2007 10:58:24 +0100 Reply-To: From: "Leonardo Battagli" To: "'users cocoon'" Subject: I: Reading Cocoon component from Servlet Filter Date: Fri, 19 Jan 2007 11:05:15 +0100 Message-ID: <001201c73bb1$50fe1ef0$5901a8c0@cedac.local> MIME-Version: 1.0 X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook CWS, Build 9.0.2416 (9.0.2911.0) X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1106 Importance: Normal X-Antivirus: avast! (VPS 0704-0, 18/01/2007), Outbound message X-Antivirus-Status: Clean X-MIMETrack: Itemize by SMTP Server on ITMAIL01/Cedac(Release 6.5.4FP2|September 12, 2005) at 19/01/2007 10.58.24, Serialize by Router on ITMAIL01/Cedac(Release 6.5.4FP2|September 12, 2005) at 19/01/2007 10.58.46, Serialize complete at 19/01/2007 10.58.46 X-TM-AS-Product-Ver: -<3.0.1.3187>-<3.6.1039>-<14945> X-TM-AS-Result: -<-7.854>-<5.0>-<99000> Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset="iso-8859-1" X-Virus-Checked: Checked by ClamAV on apache.org Hi, I tried to look at source code for example, but didn't find anything Basilarly all I want to do is way to get the 'cocoon' variable we usually have available inside flowscript. We usualyy use it to get components [cocoon.getComponent("componentRole");] I have to retrieve the same "componentRole" also inside a Servlet Filter. If you start cocoon with servlet-debug I can see that inside 'ServletContext' variable there is Cocoon=[org.apache.cocoon.servlet.CocoonServlet] So I suppose cocoon = (org.apache.cocoon.servlet.CocoonServlet)(this.servletContext.getAttribute(" Cocoon")); was a great solution, but it is not Leonardo > I want it in a servlet filter, so I mean it is a java class > > I need 'cocoon' since I need to retrieve some component I > have configured in cocoon.xconf, and I suppose I can find > those in 'Cocoon' main servlet look at cocoon source code for example, you need to lookup a role with the manager. Check out java part only of cocoon if you want, and search for "lookup" Also, plz keep using the public mailinglists. These mails are indexed and archived, and are an essential part of a community, Regards Ard --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org For additional commands, e-mail: users-help@cocoon.apache.org