Return-Path: Delivered-To: apmail-jakarta-struts-dev-archive@www.apache.org Received: (qmail 40202 invoked from network); 26 Jan 2004 08:42:19 -0000 Received: from daedalus.apache.org (HELO mail.apache.org) (208.185.179.12) by minotaur-2.apache.org with SMTP; 26 Jan 2004 08:42:19 -0000 Received: (qmail 22755 invoked by uid 500); 26 Jan 2004 08:41:50 -0000 Delivered-To: apmail-jakarta-struts-dev-archive@jakarta.apache.org Received: (qmail 22610 invoked by uid 500); 26 Jan 2004 08:41:49 -0000 Mailing-List: contact struts-dev-help@jakarta.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Subscribe: List-Help: List-Post: List-Id: "Struts Developers List" Reply-To: "Struts Developers List" Delivered-To: mailing list struts-dev@jakarta.apache.org Received: (qmail 22589 invoked from network); 26 Jan 2004 08:41:48 -0000 Received: from unknown (HELO chanezon.com) (63.99.209.11) by daedalus.apache.org with SMTP; 26 Jan 2004 08:41:48 -0000 Received: from chanezon.com [217.128.163.65] by chanezon.com with ESMTP (SMTPD32-7.07) id A2F84A300070; Mon, 26 Jan 2004 02:42:32 -0600 Message-ID: <4014D17E.5040206@chanezon.com> Date: Mon, 26 Jan 2004 09:36:14 +0100 From: Patrick Chanezon User-Agent: Mozilla/5.0 (Macintosh; U; PPC Mac OS X Mach-O; en-US; rv:1.5.1) Gecko/20031120 X-Accept-Language: en,fr-FR,fr MIME-Version: 1.0 To: Struts Developers List CC: Alejandro Abdelnur Subject: Re: Does struts-chain work with tomcat 4.1 ? References: <400D1DCD.1020502@chanezon.com> <400D3524.1060208@chanezon.com> <400E6CB3.7080102@chanezon.com> In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N X-Spam-Rating: minotaur-2.apache.org 1.6.2 0/1000/N Joe Germuska wrote: >>> Of course, it would be better to rewrite the struts-chain build to >>> explicitly identify the JARs it needs, when time allows. >> >> >> I'm not sure this would be better. >> Mavenizing struts-chain would be the best, but then with how maven is >> currently operating, you would need to explicitly declare all >> dependencies in struts-chain, thus duplicating struts dependencies in >> this subproject. >> My colleague Alejandro Abdelnur, whom I CC here, has a very >> interesting maven enhancement proposal to solve that kind of issue: > > ... > > That Maven enhancement sounds useful, and I've definitely heard > discussions of the like on the maven-dev list, either related to > Alejandro's proposal or at least sympathetic to it. > > For now, we could just declare that the struts-chain project.xml > extends the struts project.xml; this would work now without waiting > for changes to maven which will probably be slow in coming, since they > are doing a big under-the-hood overhaul for Maven 1.1 Jakarta-Commons > uses project inheritance extensively, and I've used it myself and it > pretty much does what we want here -- makes sure that the versions of > common JAR dependencies track between struts-chain and struts itself. > Thanks Joe: you are definitely right, project inheritance should be exactly what's needed for the struts / struts-chain use case. I had completely forgotten about that possibility, since I've never used it yet. >>> The problem you identified with the example struts-config.xml may >>> not be the only one; I tried using that a bit when I was working on >>> getting Chain installed, and ended up finding it easier to just put >>> the ComposableRequestProcessor in the app I was working on rather >>> than getting it working with the struts-chain example app. If you >>> have the time to fix up the struts-config.xml to work correctly, >>> patches would be gratefully accepted. (Preferably attached to a >>> bugzilla entry.) >>> >> I'll send a patch when I succeed in making that stuff work. >> So my understanding is that the current struts-config.xml in >> struts-chain is out of sync with the struts example application, and >> you work with a different web application to test your work. >> Do I understand right ? > > > I believe that's true, and probably more so since Ted has been doing a > ton of work on the example applications lately. I'm plugging the > chain straight into my current project and it's working. > Thanks, I'll try on a simple application then. > >> The changes I made in struts-nightly struts-config.xml to use the >> ComposableRequestProcessor are: >> ... >> When I do that I get the welcome page but all links go to blank pages. >> Did I miss something ? > > > That all looks correct to me. You should be able to make those two > changes (define an alternate processor class in controller-config; > include Chain plug-in) in any existing Struts application you have and > have it basically work. > Thanks for your help. P@ > Joe > --------------------------------------------------------------------- To unsubscribe, e-mail: struts-dev-unsubscribe@jakarta.apache.org For additional commands, e-mail: struts-dev-help@jakarta.apache.org