Return-Path: Delivered-To: apmail-struts-user-archive@www.apache.org Received: (qmail 92611 invoked from network); 4 May 2005 09:50:57 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 4 May 2005 09:50:57 -0000 Received: (qmail 12396 invoked by uid 500); 4 May 2005 09:51:20 -0000 Delivered-To: apmail-struts-user-archive@struts.apache.org Received: (qmail 12257 invoked by uid 500); 4 May 2005 09:51:18 -0000 Mailing-List: contact user-help@struts.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Subscribe: 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 12178 invoked by uid 99); 4 May 2005 09:51:17 -0000 X-ASF-Spam-Status: No, hits=0.1 required=10.0 tests=FORGED_RCVD_HELO X-Spam-Check-By: apache.org Received-SPF: pass (hermes.apache.org: local policy) Received: from mail.waersystems.com (HELO waersys.net) (217.204.76.189) by apache.org (qpsmtpd/0.28) with ESMTP; Wed, 04 May 2005 02:51:16 -0700 Received: from MARCOM1 ([192.168.110.110]) by waersys.net (8.12.8/8.12.8) with ESMTP id j449n7L6025780 for ; Wed, 4 May 2005 10:49:08 +0100 From: "Marco Mistroni" To: "'Struts Users Mailing List'" Subject: Struts 1.3, chain & command configuration / few thoughts.. Date: Wed, 4 May 2005 10:48:55 +0100 Message-ID: <000901c5508e$7c970fa0$6e6ea8c0@MARCOM1> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook, Build 10.0.2627 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2180 In-Reply-To: <51034.12.27.179.239.1115136740.squirrel@webmail.chiron.lunarpages.com> Importance: Normal X-Virus-Checked: Checked X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N Hello all, I am currently using Struts 1.3dev in my application, and I have recently bothered the list to find a way to configure commands via Spring. Now, just yesterday, I came across an article (http://www.onjava.com/pub/a/onjava/2005/03/02/commonchains2.html) on how The new RequestProcessor is used in Struts 1.3... Struts 1.3 uses a chain-config.xml and custom chan configs that allows user To 'override' or change the behaviour of request processor. Following that article I have implemented my custom command for pre-processing in RequestProcessor (as showed in article). Question is: what if I want to use some of my spring beans in one of those 'request processor' commands? Currently, in my app, I am using commands for doing various logic, and those Commands are configured via Spring by using a Spring plugin.. But I am not sure I can do same with RequestProcessor commands, since the chain-config.xml file is read at initialization time, when I suppose the Spring plugin has not been initialized yet... so the bean won't be available.. If I remember correct, there's a way in Spring to say that a 'bean' will be initialized only after 'beanx' has been initialized (I guess is a 'depend' attribute ein applicationContext.xml).. But will this work for RequestProcessor commands? Hope I was clear enough to explain my problem... Thanx in advance and regars marco --------------------------------------------------------------------- To unsubscribe, e-mail: user-unsubscribe@struts.apache.org For additional commands, e-mail: user-help@struts.apache.org