The adapter pattern is *definitely* a good way to use Struts Action
classes.  In particular, you are adapting the use of servlet API
things like HttpServletRequest and HttpSession into calls on model
tier methods that should be independent of the presentation tier API
(so that those model tier classes can be reused in other
environments).

Craig



On Tue, 28 Sep 2004 21:25:13 +0800, Chris
<[EMAIL PROTECTED]> wrote:
> Howdy,
> 
> Some article say that in struts web applications, our actions
> (say: MyLoginAction extends Action)  connect  controller(C)
> and model(M),  make them work together:
> 
> Controller <==> Action <==> Model
> 
> Therefore, can we say precisely our actions play a adapter role
> and we are applying "Adapter" design pattern ?
> 
> Regards.
> Chris
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
>

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to