Question:
What is Model-view-controller (MVC)?
?
2010-01-04 22:42:34 UTC
What is Model-view-controller (MVC)?
Five answers:
Sky.
2010-01-04 22:56:59 UTC
Model–View–Controller (MVC) is an architectural pattern used in software engineering. The pattern isolates "domain logic" (the application logic for the user) from input and presentation (GUI), permitting independent development, testing and maintenance of each.



The model is the domain-specific representation of the data upon which the application operates. Domain logic adds meaning to raw data (for example, calculating whether today is the user's birthday, or the totals, taxes, and shipping charges for shopping cart items). When a model changes its state, it notifies its associated views so they can refresh.



Many applications use a persistent storage mechanism such as a database to store data. MVC does not specifically mention the data access layer because it is understood to be underneath or encapsulated by the model. Models are not data access objects; however, in very simple apps that have little domain logic there is no real distinction to be made. Also, the ActiveRecord is an accepted design pattern which merges domain logic and data access code - a model which knows how to persist itself.



The view renders the model into a form suitable for interaction, typically a user interface element. Multiple views can exist for a single model for different purposes.



The controller receives input and initiates a response by making calls on model objects.



An MVC application may be a collection of model/view/controller triplets, each responsible for a different UI element.



MVC is often seen in web applications where the view is the HTML or XHTML generated by the app. The controller receives GET or POST input and decides what to do with it, handing over to domain objects (i.e. the model) that contain the business rules and know how to carry out specific tasks such as processing a new subscription.



Read more at here:

http://en.wikipedia.org/wiki/Model-View-Controller
anonymous
2010-01-04 22:48:24 UTC
Model-view-controller (MVC) is a design pattern used in software engineering. In complex computer applications that present lots of data to the user, one often wishes to separate data (model) and user interface (view) concerns, so that changes to the user interface do not impact the data handling, and that the data can be reorganized without changing the user interface. The model-view-controller design pattern solves this problem by decoupling data access and business logic from data presentation and user interaction, by introducing an intermediate component: the controller.
anonymous
2014-02-18 09:10:36 UTC
My answer is a bit late. Yet, one of the most informative page on this Model–View–Controller (MVC) is Wikipedia. Here is the link: http://en.wikipedia.org/wiki/Model%E2%80%93view%E2%80%93controller
anonymous
2016-10-06 16:40:25 UTC
undecided in case you need to use BEA WebLogic (Java Server) or no longer, yet they generally have good tutorials on imposing numerous programming varieties. The hyperlink under is for Hibernate and mentions Struts. you additionally can choose to hunt the Eclipse records/boards to establish in the event that they illustrate an identical academic to what you opt to do.
anonymous
2013-12-23 19:55:09 UTC
it's a good question


This content was originally posted on Y! Answers, a Q&A website that shut down in 2021.
Loading...