Return-Path: Delivered-To: apmail-struts-dev-archive@www.apache.org Received: (qmail 46774 invoked from network); 16 Dec 2004 22:31:16 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur-2.apache.org with SMTP; 16 Dec 2004 22:31:16 -0000 Received: (qmail 52633 invoked by uid 500); 16 Dec 2004 22:31:12 -0000 Delivered-To: apmail-struts-dev-archive@struts.apache.org Received: (qmail 52598 invoked by uid 500); 16 Dec 2004 22:31:11 -0000 Mailing-List: contact dev-help@struts.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 dev@struts.apache.org Received: (qmail 52582 invoked by uid 99); 16 Dec 2004 22:31:11 -0000 Received-SPF: neutral (hermes.apache.org: local policy) Received: from mail50.megamailservers.com (HELO mail50.megamailservers.com) (216.251.36.50) by apache.org (qpsmtpd/0.28) with ESMTP; Thu, 16 Dec 2004 14:29:56 -0800 X-Authenticated-User: batien.duong.dbgroups.com Received: from dbgroups.com (s142-179-180-163.ab.hsia.telus.net [142.179.180.163]) (authenticated bits=0) by mail50.megamailservers.com (8.12.10/8.12.9) with ESMTP id iBGI3xBL014834 for ; Thu, 16 Dec 2004 13:03:59 -0500 Message-ID: <41C1CE15.9010405@dbgroups.com> Date: Thu, 16 Dec 2004 11:04:05 -0700 From: BaTien Duong User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.7b) Gecko/20040316 X-Accept-Language: en-us, en MIME-Version: 1.0 To: Struts Developers List Subject: Re: Commons Chain Cookbook: Why have Struts Actions? References: <2004121513325.494124@pc18> In-Reply-To: <2004121513325.494124@pc18> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked X-Spam-Rating: minotaur-2.apache.org 1.6.2 0/1000/N Ted Husted wrote: >On Wed, 15 Dec 2004 17:22:15 +0000, Pilgrim, Peter wrote: > > >> I was thinking in truth, only providing access to the ``catalog'' >> and ``command'' not necessarily changing the execution model. But >> if that is the case, could a Struts ``Action'' as it appears in >> 1.2.6 actually be a commons chain `Command' type? If it is, then, >> it opens the doors for the ``chaining action'' conundrum all again. >> >> >> > >It's my own feeling that there should be a clean break between the presentation layer (Struts) that collects and display values, and the business logic layer (e.g. Chain) that should do everything else. > >I started a new project this week based on Context, Command, and (as of five minutes ago) Spring. The paradigm is that the presentation layer collects whatever values are needed and puts them into a Context. A controller component executes the associated Command (or Chain) and returns the outcome in the Context. Both the Context and Command are extended so that they can handle all the business processing: Input and Output Validation, Execution, Error and Exception Handling, and Message Resolution. > >For input, the Context has convenience properties for Locale, User, Role, and for output, there are properties for Output, Errors, Messages, and Fault (Exception). I expect there to be more, but I'm only adding what I need when I need it. > >When the Context returns, it can be examined by the presentation layer, which can then display the output, messages, or errors. > > > This is great Ted. What it means is that each individual backend software component catalog can determine finer grain of authorization and the amount of supplied information. The web layer will take care of the first pass and assemble the supplied fragments. Please let all the mortals know when it is available. Thanks BaTien DBGROUPS >It's all in C# now, since I'm working in .NET, but I'd like to port it back to Java 1.5 and maybe PHP 5. > >-Ted. > > > >--------------------------------------------------------------------- >To unsubscribe, e-mail: dev-unsubscribe@struts.apache.org >For additional commands, e-mail: dev-help@struts.apache.org > > >. > > > --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscribe@struts.apache.org For additional commands, e-mail: dev-help@struts.apache.org