Return-Path: Delivered-To: apmail-struts-user-archive@www.apache.org Received: (qmail 15849 invoked from network); 19 Jan 2007 11:43:19 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 19 Jan 2007 11:43:19 -0000 Received: (qmail 58768 invoked by uid 500); 19 Jan 2007 11:43:14 -0000 Delivered-To: apmail-struts-user-archive@struts.apache.org Received: (qmail 58733 invoked by uid 500); 19 Jan 2007 11:43:14 -0000 Mailing-List: contact user-help@struts.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Help: List-Post: List-Id: "Struts Users Mailing List" Reply-To: "Struts Users Mailing List" Delivered-To: mailing list user@struts.apache.org Received: (qmail 58715 invoked by uid 99); 19 Jan 2007 11:43:14 -0000 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_HELO_PASS,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (hermes.apache.org: domain of lists@nabble.com designates 72.21.53.35 as permitted sender) Received: from [72.21.53.35] (HELO talk.nabble.com) (72.21.53.35) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 19 Jan 2007 03:43:10 -0800 Received: from [72.21.53.38] (helo=jubjub.nabble.com) by talk.nabble.com with esmtp (Exim 4.50) id 1H7s5m-0008NY-8h for user@struts.apache.org; Fri, 19 Jan 2007 03:39:34 -0800 Message-ID: <8447680.post@talk.nabble.com> Date: Fri, 19 Jan 2007 03:39:34 -0800 (PST) From: manunixx To: user@struts.apache.org Subject: combining chain of commands with struts action MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Nabble-From: manunixx@yahoo.it X-Virus-Checked: Checked by ClamAV on apache.org hallo guys! I spent a lot of time trying to retrive a catalog from a struts action but i didn't get results! :( Following the guidelines found in the jakarta commonsChain, I did this: defining a catalog.xml ... adding a ChainListener to web.xml defining a parameter org.apache.commons.chain.CONFIG_CLASS_RESOURCE to tell the listener where to locate the catalog.xml trying to retrive the catalog parsed from an action by doing: Catalog catalog = CatalogFactory.getInstance().getCatalog(); // this return null Question: do I have to config a CatalogFactory before? can anyone suggest me any reference or updated documentation regarding struts action and common chain? I saw that action mapping in struts-config.xml do accepts parameters "catalog and command". Do I have to use these to interact with commands? Please halp me, I'm getting Nuts! Emanuele. -- View this message in context: http://www.nabble.com/combining-chain-of-commands-with-struts-action-tf3039447.html#a8447680 Sent from the Struts - User mailing list archive at Nabble.com. --------------------------------------------------------------------- To unsubscribe, e-mail: user-unsubscribe@struts.apache.org For additional commands, e-mail: user-help@struts.apache.org