struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Fabio Perfetti <perfabi...@gmail.com>
Subject Re: Confusing model with controller
Date Tue, 25 May 2010 10:14:17 GMT
so? what is the model? the beans?

public class Employee{
   private String name;
   private String surname;
   public setter/getter ...
}


2010/5/25 Antonio Petrelli <antonio.petrelli@gmail.com>

> 2010/5/25 Fabio Perfetti <perfabio87@gmail.com>:
> > I am wondering if the actions belongs to the model layer or to the
> > controller layer.
>
> Actions are by definition part of the controller.
>
> > All the example on the web are simple!
> > Anyone can explain me? (with an example please)
>
> No example but a simple argument: the model exists *without* the need
> of any controller part, especially actions.
>
> Antonio
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
> For additional commands, e-mail: user-help@struts.apache.org
>
>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message