Return-Path: Delivered-To: apmail-jakarta-struts-user-archive@apache.org Received: (qmail 70176 invoked from network); 7 Feb 2003 20:12:20 -0000 Received: from exchange.sun.com (192.18.33.10) by daedalus.apache.org with SMTP; 7 Feb 2003 20:12:20 -0000 Received: (qmail 15866 invoked by uid 97); 7 Feb 2003 20:13:54 -0000 Delivered-To: qmlist-jakarta-archive-struts-user@nagoya.betaversion.org Received: (qmail 15859 invoked from network); 7 Feb 2003 20:13:54 -0000 Received: from daedalus.apache.org (HELO apache.org) (208.185.179.12) by nagoya.betaversion.org with SMTP; 7 Feb 2003 20:13:54 -0000 Received: (qmail 68392 invoked by uid 500); 7 Feb 2003 20:12:01 -0000 Mailing-List: contact struts-user-help@jakarta.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 struts-user@jakarta.apache.org Received: (qmail 68380 invoked from network); 7 Feb 2003 20:12:01 -0000 Received: from ms-smtp-01.nyroc.rr.com (24.92.226.148) by daedalus.apache.org with SMTP; 7 Feb 2003 20:12:01 -0000 Received: from apache.org (roc-24-93-14-71.rochester.rr.com [24.93.14.71]) by ms-smtp-01.nyroc.rr.com (8.12.5/8.12.2) with ESMTP id h17KC6OU004169 for ; Fri, 7 Feb 2003 15:12:06 -0500 (EST) Message-ID: <3E44131F.6090209@apache.org> Date: Fri, 07 Feb 2003 15:12:15 -0500 From: Ted Husted Organization: Apache Software Foundation - Jakarta Project User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.0.2) Gecko/20021120 Netscape/7.01 X-Accept-Language: en-us, en MIME-Version: 1.0 To: struts-user@jakarta.apache.org Subject: RE: Opinions: fine or coarse grained actions Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N Fine-grained actions is one pattern. Coarse-grained actions is another. Sometimes the circumstances call for one, sometimes the other. Just as sometimes you need a singleton, and other times you need a factory. The beauty of Struts is that it lets you pick and choose which pattern to use when. Personally, I liken the fine-grained Actions to what Fowler [1] calls "Transaction Scripts", and coarse-grained Actions to what Fowler calls "Domain Models". In that latter case, the Domain Model is finely grained and so an Action can become more coarse. -Ted. [1] Patterns of Enterprise Application Architecture -- Ted Husted, Struts in Action --------------------------------------------------------------------- To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org For additional commands, e-mail: struts-user-help@jakarta.apache.org