struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Mark Menard <m...@mjm.net>
Subject Re: [s2] Do I still need a business service layer ?
Date Tue, 17 Apr 2007 21:20:42 GMT
On 4/17/07 10:20 AM, "nicolas de loof" <nicolas.deloof@gmail.com> 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


Mime
View raw message