- Dec 11, 1999
- 16,835
- 4,815
- 75
The "model-view-controller" pattern. I've seen that pop up frequently over the past few months; but I don't really understand it. Nothing I've read has really helped.
I understand "view". Databases have views. And I can see how a JSP page on a J2EE app, for instance, could be a view.
What I don't get is model and controller. Wikipedia says something about the model being related to a database backend; but that the database backend itself is outside the model-view-controller pattern.
So, what are "model" and "controller"? Or maybe, considering the amount of stuff I would put in or call from a JSP page, what are they that a view is not?
I understand "view". Databases have views. And I can see how a JSP page on a J2EE app, for instance, could be a view.
What I don't get is model and controller. Wikipedia says something about the model being related to a database backend; but that the database backend itself is outside the model-view-controller pattern.
So, what are "model" and "controller"? Or maybe, considering the amount of stuff I would put in or call from a JSP page, what are they that a view is not?
