• TestingDocs
TestingDocs.com
Software Testing website
  • Automation
    • Selenium
    • JBehave Framework
  • Tutorials
    • MySQL Tutorials
    • Testlink
    • Maven
    • Git
  • IDEs
    • IntelliJ IDEA
    • Eclipse
  • Flowcharts
    • Flowgorithm
    • Raptor
  • About

Java Servlets

Model View Controller( MVC )

Overview

Model View Controller( MVC ) is a web application development model. The main components of this development model are as follows:

  • Model
  • View
  • Controller

Controller

The controller is the heart of the web application. The Controller maintains the entire flow of the web application. This component acts as the entry point for the client’s request and the exit point of the application response to the client. The controller component acts as the mediator between the Model and View components.

Example: Java Servlet

 

Model View Controller

Model

The Model component contains the business logic of the web application. The business logic component communicates with the backend resources and gets a result for the given request.

Example: Java Bean/ EJB, Spring

View

The View component contains the presentation logic of the web application. The Model and View components do not talk to each other. The communication between the models should be through the Controller. The View component gets the data from the Model component and applies the presentation logic to the data.

Example: JSP pages

 

—

Java Tutorials

Java Tutorial on this website:

https://www.testingdocs.com/java-tutorial/

For more information on Java, visit the official website :

https://www.oracle.com/java/

Related Posts

Java Servlets /

JSP Architecture

Java Servlets /

Java ServletRequest Interface

Java Servlets /

Deployment Descriptor File (web.xml)

Java Servlets /

GenericServlet Class

Java Servlet Architecture

Java Servlets /

Java Servlet Architecture

‹ Deployment Descriptor File (web.xml)› Java ServletRequest Interface

Recent Posts

  • How to secure your SQL Database: Tips and Tricks
  • Shaping the Future of Development: Exploring Key Trends in Software Engineering
  • Improving Java Performance with Multithreading
  • Difference between PHP and JavaScript?
  • Bing Conversation Styles
  • ChatGPT Introduction
  • Open Source AI Frameworks
  • Artificial Intelligence Tools
  • Top AI Music Applications
  • Top AI Website Design Tools

Back to Top

Links

  • Contact
  • Privacy Policy
  • Cookie Policy

www.TestingDocs.com