Return-Path: Delivered-To: apmail-struts-dev-archive@www.apache.org Received: (qmail 90697 invoked from network); 23 Oct 2009 15:36:21 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 23 Oct 2009 15:36:21 -0000 Received: (qmail 83530 invoked by uid 500); 23 Oct 2009 15:36:20 -0000 Delivered-To: apmail-struts-dev-archive@struts.apache.org Received: (qmail 83484 invoked by uid 500); 23 Oct 2009 15:36:20 -0000 Mailing-List: contact dev-help@struts.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Help: List-Post: List-Id: "Struts Developers List" Reply-To: "Struts Developers List" Delivered-To: mailing list dev@struts.apache.org Received: (qmail 83474 invoked by uid 99); 23 Oct 2009 15:36:20 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 23 Oct 2009 15:36:20 +0000 X-ASF-Spam-Status: No, hits=-2.6 required=5.0 tests=AWL,BAYES_00,HTML_MESSAGE X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of xtian@stonescape.net designates 70.91.84.41 as permitted sender) Received: from [70.91.84.41] (HELO stonescape.net) (70.91.84.41) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 23 Oct 2009 15:36:17 +0000 Received: from localhost (localhost [127.0.0.1]) by stonescape.net (Postfix) with ESMTP id D5F4ADB61E8 for ; Fri, 23 Oct 2009 11:40:06 -0400 (EDT) Received: from stonescape.net ([127.0.0.1]) by localhost (stonescape.net [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id wr4ehbsPonby for ; Fri, 23 Oct 2009 11:40:05 -0400 (EDT) Received: from [10.101.1.14] (unknown [10.101.1.14]) by stonescape.net (Postfix) with ESMTPSA id 53A26DB6042 for ; Fri, 23 Oct 2009 11:40:05 -0400 (EDT) From: Christian Stone Mime-Version: 1.0 (Apple Message framework v1076) Content-Type: multipart/alternative; boundary=Apple-Mail-17-979564178 Subject: Re: The future of sitemesh integration with struts 2... Date: Fri, 23 Oct 2009 11:35:54 -0400 In-Reply-To: <310BF252-B144-47C1-ACA8-73A256E014E8@pontarelli.com> To: "Struts Developers List" References: <475B9A42-800F-4F99-914D-97924817F5CC@stonescape.net> <4ADF3014.9010709@newfield.org> <755E2D55-5C70-4059-8BC0-89AD4FE19B8E@stonescape.net> <4AE07E28.2000500@newfield.org> <3B39A774-6F59-4591-BA66-987E9AFEF73C@stonescape.net> <2262D824-2B48-44FF-A593-E0FA4CD342A7@stonescape.net> <49B4A6A0-4326-450E-9993-7B567D660B56@stonescape.net> <310BF252-B144-47C1-ACA8-73A256E014E8@pontarelli.com> Message-Id: <5AD06465-DDF4-430D-ACF7-E3303D4E8BBB@stonescape.net> X-Mailer: Apple Mail (2.1076) --Apple-Mail-17-979564178 Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset=us-ascii; format=flowed; delsp=yes There is some time before SiteMesh 3 comes prime time, so there is plenty of time for thought here. I do love the idea of wiring it up directly... However, since SiteMeshFilter requires the dispatcher to handle requests, you would have to incorporate the SiteMesh filter directly into the struts filter chain, and I think this would require struts to absorb much of the sitemesh codebase (unless the SiteMesh developer were to refactor the code a whole lot more to allow it to plug in to other filters and not be a filter on its own). The same thing would go for the dispatchers, since struts would have to insert them on the chain as well. It does seem like a lot of work without a noticeable benefit to the users (they still have to configure a decorators file, etc., and which filters/dispatchers are potentially causing conflicts would be hidden from the user). Additionally, they still would have to configure the dispatcher, at least for the request mapping, and I think it is less intuitive to put it into a struts config file than web.xml where they are used to such configurations (again, at this time). With all that said, if you want to take on the task of working with SiteMesh 3 and making it truly pluggable and modular (such as a JCatapult module), that would be awesome. Once that happens the work on the Struts side shouldn't be so bad (presuming the core architecture is in place)! If the convention of Struts is to configure and deploy everything, including JSP dispatcher, etc. then I love the idea! -- Christian On Oct 23, 2009, at 11:13 AM, Brian Pontarelli wrote: > I was never big on the Servlet or Filter models. It seems to me that > Struts2 is moving heavily towards conventions and the more things > are just "pluggable" the easier it will be for users. I feel that > the best approach would be for Struts2 to discover SiteMesh in the > class path and wire it up automatically. I'd also wonder if this > could be another case for some additional annotations in addition to > XML configuration for defining templates. > > Anyways, this is how I would proceed and leverage SiteMesh 3. This > is my plan for JCatapult. > > -bp > -- _,--" cws `-._ ________-_______ "---- _----'--'--------------------------------'--'----_ //_| | \ Christian Stone, Software Engineer / | |_\\ (_____|_|__= xtian@stonescape.net =__|_|_____) _\_____=__ http://xtian.stonescape.net/ ___/_ \/-(o)-~~-(o)-~~-(o)-`------'-(o)-~~-(o)-~~-(o)-\/ --Apple-Mail-17-979564178--