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 actioninvocation in struts2?

594


Name some of the features of struts2?

579


What is actionservlet?

566


What is actionmapping?

608


What is the use of Struts.xml configuration file?

523






Explain about the future of struts?

545


What is the difference between session scope and request scope when saving formbean ?

566


What is struts-default package and what are it’s benefits?

588


What is the purpose of struts.xml in struct2?

683


What does modeldriven interceptor?

599


Which components are available using actioncontext map?

732


What inbuilt themes are provided by struts2?

599


How duplicate form submission can be controlled in struts?

657


What is ValueStack and OGNL?

579


For a single Struts application, can we have multiple struts-config.xml files?

594