What is MVC?

Answer Posted / eldho k abraham

Model-View-Controller (MVC) is a design pattern put
together to help control change. MVC decouples interface
from business logic and data.
Model : The model contains the core of the
application's functionality. The model encapsulates the
state of the application. Sometimes the only functionality
it contains is state. It knows nothing about the view or
controller.

View: The view provides the presentation of the
model. It is the look of the application. The view can
access the model getters, but it has no knowledge of the
setters. In addition, it knows nothing about the
controller. The view should be notified when changes to the
model occur.

Controller:The controller reacts to the user input.
It creates and sets the model.

Is This Answer Correct ?    5 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is actionform in struts?

640


What is package name in struts xml?

753


How you will make available any message resources definitions file to the struts framework environment?

727


Difference between struts and spring?

753


What is the difference between struts and spring? Explain

653


Why it called struts?

716


What applications use apache struts?

667


What is filter dispatcher in struts?

689


What is the use of token interceptor in Struts2?

817


Why are springs better than struts?

782


What is the purpose of constant tag in struts.xml?

698


Explain about the library tag?

763


What is pojo in struts2?

737


What is the use of forwardaction?

711


What is the forward action utilized for?

737