I'm would like to apply the MVC pattern to my application in Java. Actually, I was researching a lot.. but I could not find a clear definition for the responsibility of each component (model / view / controller).
Of course, my model holds the data as well as the getter and setter methods. Now I'm not sure where I should put the logic of my application. Should the logic belong to the model or to the controller?
Also I came across the term "business logic", which should be implemented in the model. Could you please also give some examples of what is ment by "business logic"?
Aucun commentaire:
Enregistrer un commentaire