The View component is used for all the UI logic of the application. It generates a user interface for the user. Views are created by the data which is collected by the model component but these data aren’t taken directly but through the controller. It only interacts with the controller.
Responsibilities:
Rendering data to the user in a specific format.
Displaying the user interface elements.
Updating the display when the Model changes.
Example: In a bookstore application, the View would display the list of books, book details, and provide input fields for searching or filtering books.
Dispatcher servlet --> Controller --> Model --> View --> Front end design(UI)
Top comments (0)