struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Mark Menard <>
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" <> 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.


To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message