Return-Path: Delivered-To: apmail-struts-user-archive@www.apache.org Received: (qmail 21740 invoked from network); 17 Apr 2007 21:21:13 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 17 Apr 2007 21:21:13 -0000 Received: (qmail 83767 invoked by uid 500); 17 Apr 2007 21:21:11 -0000 Delivered-To: apmail-struts-user-archive@struts.apache.org Received: (qmail 83593 invoked by uid 500); 17 Apr 2007 21:21:10 -0000 Mailing-List: contact user-help@struts.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Help: List-Post: List-Id: "Struts Users Mailing List" Reply-To: "Struts Users Mailing List" Delivered-To: mailing list user@struts.apache.org Received: (qmail 83582 invoked by uid 99); 17 Apr 2007 21:21:10 -0000 Received: from herse.apache.org (HELO herse.apache.org) (140.211.11.133) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 17 Apr 2007 14:21:10 -0700 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received-SPF: pass (herse.apache.org: local policy) Received: from [24.97.25.114] (HELO mail.vitarara.net) (24.97.25.114) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 17 Apr 2007 14:21:03 -0700 Received: by mail.vitarara.net (Postfix, from userid 503) id B6C5023889F; Tue, 17 Apr 2007 17:16:41 -0400 (EDT) Received: from [24.97.25.116] (rrcs-24-97-25-116.nys.biz.rr.com [24.97.25.116]) by mail.vitaara.net (tmda-ofmipd) with ESMTP; Tue, 17 Apr 2007 17:16:41 -0400 User-Agent: Microsoft-Entourage/10.1.6.040913.0 Date: Tue, 17 Apr 2007 17:20:42 -0400 Subject: Re: [s2] Do I still need a business service layer ? To: Struts Users Mailing List Message-ID: In-Reply-To: <4c39e3030704170720t6081b25cn4c88c5736544cf8d@mail.gmail.com> Mime-version: 1.0 Content-type: text/plain; charset="US-ASCII" Content-transfer-encoding: 7bit X-Delivery-Agent: TMDA/1.1.9 (Jura) From: Mark Menard X-Virus-Checked: Checked by ClamAV on apache.org On 4/17/07 10:20 AM, "nicolas de loof" wrote: > In struts2, AFAIK I can use any POJO as controler. Can I use my (maybe > adapted) RegistrationService as a Controller by simply changing to a > statefull model (user to register is not a method parameter anymore but a > bean property) ? This would make things really simplier ! Hi Nico, I guess you could do that, but I don't think I'd recommend it. It mixes up control (your action) with business services (your service bean). Personally I would keep them separate, and let each do what it is best at. Mark --------------------------------------------------------------------- To unsubscribe, e-mail: user-unsubscribe@struts.apache.org For additional commands, e-mail: user-help@struts.apache.org