I think if you're using IoC, then it makes sense to encapsulate your
core business logic as reusable services and have the component
container handle dependencies for you. You can then either choose to
have models or properties in your action to be populated by the form and
pass to the services.

> -----Original Message-----
> From: Matthew E. Porter [mailto:[EMAIL PROTECTED] 
> Sent: Sunday, July 06, 2003 12:26 PM
> To: [EMAIL PROTECTED]
> Subject: [OS-webwork] XWork Application Architecture
> 
> 
> I am in the process of converting JLCP from some other, unnamed 
> framework (cough... cough.. Struts) to Webwork2 and would like to 
> solicit some feedback from those who using Webwork2/XWork.  
> Right now, 
> I am working on our Poll Module and see two possible roads to 
> take for 
> implementing business logic.
> 
> The first route is to implement the business logic in a 
> separate class, 
> for example PollManager.  Actions are then used to bridge the web 
> frontend and call methods on the class.  Every action that needs 
> PollManager could retrieve it via IoC.
> 
> The second route would be to implement the logic inside Actions.  In 
> this case, actions would have direct access to the core components, 
> such as the PersistentManager to perform CRUD operations.
> 
> Any suggestions and/or opinions?
> 
> 
> Cheers,
>    matthew
> 
> 
> 
> -------------------------------------------------------
> This SF.Net email sponsored by: Free pre-built ASP.NET sites 
> including Data Reports, E-commerce, Portals, and Forums are 
> available now. Download today and enter to win an XBOX or 
> Visual Studio .NET. 
> http://aspnet.click-url.com/go/psa00100006ave/direct;at.asp_06
1203_01/01
_______________________________________________
Opensymphony-webwork mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/opensymphony-webwork


-------------------------------------------------------
This SF.Net email sponsored by: Free pre-built ASP.NET sites including
Data Reports, E-commerce, Portals, and Forums are available now.
Download today and enter to win an XBOX or Visual Studio .NET.
http://aspnet.click-url.com/go/psa00100006ave/direct;at.asp_061203_01/01
_______________________________________________
Opensymphony-webwork mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/opensymphony-webwork

Reply via email to