Return-Path: Mailing-List: contact commons-dev-help@jakarta.apache.org; run by ezmlm Delivered-To: mailing list commons-dev@jakarta.apache.org Received: (qmail 70538 invoked from network); 23 Sep 2003 01:24:03 -0000 Received: from unknown (HELO mclean-vscan2.bah.com) (156.80.3.62) by daedalus.apache.org with SMTP; 23 Sep 2003 01:24:03 -0000 Received: from mclean-vscan2.bah.com (mclean-vscan2.bah.com [156.80.3.62]) by mclean-vscan2.bah.com (8.11.0/8.11.0) with SMTP id h8N1OAQ16925 for ; Mon, 22 Sep 2003 21:24:11 -0400 (EDT) Received: from mclean2-mail.usae.bah.com ([156.80.5.110]) by mclean-vscan2.bah.com (NAVGW 2.5.2.12) with SMTP id M2003092221241025922 for ; Mon, 22 Sep 2003 21:24:10 -0400 Received: from msgarlata ([156.80.10.23]) by mclean2-mail.usae.bah.com (Netscape Messaging Server 4.15) with SMTP id HLN7WA00.P25 for ; Mon, 22 Sep 2003 21:24:10 -0400 Message-ID: <013901c38171$5dcd77a0$edd4fea9@radpbi.bah.com> From: "Sgarlata Matt" To: "Jakarta Commons Developers List" References: <000701c38068$2ab8e3e0$7001a8c0@radpbi.bah.com> <20030921143832.E42422@minotaur.apache.org> <3F6E5F4F.80705@apache.org> Subject: Re: [Chain] examples XML file available? Date: Mon, 22 Sep 2003 21:22:46 -0400 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 6.00.2800.1158 X-MIMEOLE: Produced By Microsoft MimeOLE V6.00.2800.1165 X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N Thanks for the test cases Ted! More comments below... ----- Original Message ----- From: "Ted Husted" To: "Jakarta Commons Developers List" Sent: Sunday, September 21, 2003 10:32 PM Subject: Re: [Chain] examples XML file available? > > If I play with the package some more and like it, I could provide a > > DTD for the XML file and documentation for it. That should save Craig > > and Ted from some boring work :) > > What might be helpful is a standalone ChainServlet that would load the > configuration file, like the sample PlugIn does. (A HiveMind service > might also be very cool.) I can write the ChainServlet this week, borrowing relevant code from the CatalogConfiguratorPlugIn :) HiveMind looks cool, but I'm not ready to invest time in learning it yet. > Right now, I'm loading it as a Struts PlugIn (and imagine Craig is too), > but that wouldn't work for everyone. > > > Craig R. McClanahan wrote: > > There's another example in the CVS HEAD sources of Struts, where we are > > experimenting with building a replacement for the current RequestProcessor > > class to assemble the request processing pipeline: > > > > contrib/struts-chain/src/conf/chain-config.xml > > Also in the Struts Contrib CVS is a PlugIn class. Problem is, other > parts of that distribution are coupled to the Struts Nightly Build and > won't compile under Struts 1.1 (namely the Constants.MODULE_CONFIG_KEY). > > I'd like to move the Struts CatalogConfiguratorPlugIn to the Commons > Chain distro and make it an optional compile, like JSF et al. That way, > people could start using Chain with Struts 1.1 "out of the box". > > Even if we could decouple the Contrib package from the Nightly Build, > I'm thinking if we have these other optional packages here, we can also > have one for Struts. So, the ComposableRequestProcessor would stay > there, but the CatalogConfiguratorPlugIn would move here. > > Does this sound all right? Actually, if we write a ChainServlet then do we need a Struts PlugIn at all? If the ChainServlet is set to load before the ActionServlet and the ChainServlet stores its catalog in a known location, Struts users should be able to use the ChainServlet without using a PlugIn at all. I do agree with your reasoning that the CatalogConfiguratorPlugIn should live in Chain instead of Struts, but I don't see a need for a PlugIn at all. > -Ted. Matt