Preview

Model View Controller

Good Essays
Open Document
Open Document
528 Words
Grammar
Grammar
Plagiarism
Plagiarism
Writing
Writing
Score
Score
Model View Controller
The MVC (Model-View-Controller) architecture is a way of decomposing an application into three parts: the model, the view and the controller. It was originally applied in the graphical user interaction model of input, processing and output.

By dividing the web application into a Model, View, and Controller we can, therefore, separate the presentation from the business logic. If the MVC architecture is designed purely, then a Model can have multiple views and controllers. Also note that the model does not necessarily have to be a Java Servlet. In fact a single Java Servlet can offer multiple models. The Java Servlet is where you would place security login, user authentication and database pooling for example. After all these latter have nothing to do with the business logic of the web application or the presentation.

Model - A model represents an application’s data and contains the logic for accessing and manipulating that data. Any data that is part of the persistent state of the application should reside in the model objects. The services that a model exposes must be generic enough to support a variety of clients. By glancing at the model's public method list, it should be easy to understand how to control the model's behavior. A model groups related data and operations for providing a specific service; these group of operations wrap and abstract the functionality of the business process being modeled.
A model’s interface exposes methods for accessing and updating the state of the model and for executing complex processes encapsulated inside the model. Model services are accessed by the controller for either querying or effecting a change in the model state. The model notifies the view when a state change occurs in the model.

View - The view is responsible for rendering the state of the model. The presentation semantics are encapsulated within the view, therefore model data can be adapted for several different kinds of clients. The view modifies itself

You May Also Find These Documents Helpful

  • Satisfactory Essays

    NT1210 Lab 3.1 Review

    • 505 Words
    • 3 Pages

    The model helps visualize what is happening. It endures because it is a set a proven model.…

    • 505 Words
    • 3 Pages
    Satisfactory Essays
  • Good Essays

    Nt1310 Unit 1 Term Paper

    • 1401 Words
    • 6 Pages

    View: This is the user facing component of the system. This is probably going to a webpage or an application native to the platform it is running on. Either case, it would require usage of some markup language (such as HTML) and some styling components (such as CSS). As for the ‘actionable’ items in this part of the component (such a clicking a button or choosing an option or submitting a form etc.) we would need some JavaScript or a similar scripting language with equivalent capabilities. Because there are…

    • 1401 Words
    • 6 Pages
    Good Essays
  • Satisfactory Essays

    nt1210

    • 831 Words
    • 4 Pages

    Based on what you already know about networks, what are the different layers you think would be necessary for communication to be mapped to a model? Consider direct connections between host devise and connections that require other routing equipment, such as a hub, switch, or router.…

    • 831 Words
    • 4 Pages
    Satisfactory Essays
  • Good Essays

    MVC helps us to build dynamic and powerful websites and also gives us full control on mark-up. It includes many sophisticated features to develop a modern web application.…

    • 399 Words
    • 2 Pages
    Good Essays
  • Good Essays

    Psy300 Week 8

    • 760 Words
    • 4 Pages

    • Identify how you can encapsulate the data and processes you identified into an object-oriented design.…

    • 760 Words
    • 4 Pages
    Good Essays
  • Satisfactory Essays

    mat540 quiz 1 review

    • 668 Words
    • 6 Pages

    7. A model is a mathematical representation of a problem situation including variables, parameters, and equations.…

    • 668 Words
    • 6 Pages
    Satisfactory Essays
  • Satisfactory Essays

    Creating a Domain Model

    • 482 Words
    • 2 Pages

    A Windows domain model is an organized collaboration of Windows servers whose database contain user information, organizational, functional, and security policies amongst other things. By the nature of the class, the use of Windows Server 2008 R2 is established. Depending on the business and hierarchical topology of the organization that is served by the model, it can be a single domain or made up of multiple domains. If there are multiple domains, they could be organized into a tree or trees that make up a forest or forests.…

    • 482 Words
    • 2 Pages
    Satisfactory Essays
  • Satisfactory Essays

    4. What layer of the OSI model ensures that information sent by the application layer will be formatted properly so that the application layer of another system can read the data?…

    • 256 Words
    • 4 Pages
    Satisfactory Essays
  • Good Essays

    Application architecture is the organizational design of an entire software application, including all sub-components and external applications interchanges. There are several design patterns that are used to define an application architecture. These patterns help to communicate how an application will complete the necessary business processes as defined in the system requirements.…

    • 856 Words
    • 4 Pages
    Good Essays
  • Good Essays

    Study Guide GB 310

    • 5424 Words
    • 22 Pages

    A set of one of more process models details the many function of a system or subject area with graphics and text and its purpose is to:…

    • 5424 Words
    • 22 Pages
    Good Essays
  • Good Essays

    The Osi Model

    • 550 Words
    • 3 Pages

    Layer Seven of the OSI Model - The Application Layer of the OSI model is responsible for providing end-user services, such as file transfers, electronic messaging, e-mail, virtual terminal access, and network management. This is the layer with which the user interacts.…

    • 550 Words
    • 3 Pages
    Good Essays
  • Satisfactory Essays

    Logical design takes each piece of conceptual design and assigns it to a specific logical role within architecture. For infrastructure projects, the architecture might be a series of block diagrams showing networks, service components, and network connection elements. Application architecture is typically broken down into at least three levels: presentation, business, and data level.…

    • 347 Words
    • 2 Pages
    Satisfactory Essays
  • Good Essays

    This module is provides the fundamental functionality of the spring framework. In this module BeanFactory is the heart of any spring-based application. The entire framework was built on the top of this module. This module makes the Spring container.…

    • 4120 Words
    • 17 Pages
    Good Essays
  • Powerful Essays

    Bootstrap Framework

    • 7061 Words
    • 29 Pages

    Scaffolding is a technique supported by some model-view-controller frameworks, in which the programmer may write a specification that describes how the application database may be used. The compiler uses this specification to generate code that the application can use to create, read, update and delete database entries, effectively treating the template as a "scaffold" on which to build a more powerful application.…

    • 7061 Words
    • 29 Pages
    Powerful Essays
  • Powerful Essays

    Osi Reference Model

    • 1753 Words
    • 8 Pages

    In this section we briefly describe the functions of each layer in the OSI model. model.…

    • 1753 Words
    • 8 Pages
    Powerful Essays