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 the purpose of @keyproperty annotation annotation?

573


What is dispatch action class?

604


What are struts in java?

500


What is the purpose of @result?

577


How can we get Servlet API Request, Response, HttpSession etc Objects in action classes?

624






What is the actionform?

574


What’s the difference between validation.xml and validator-rules.xml files in struts validation framework?

579


Name the different types of actions found in struts.

551


What is struts and why it is used?

493


Is there a particularly good ide to use with struts?

500


What is value stack?

619


How can we display all validation errors to user on jsp page?

643


How exceptions are handled in struts application?

532


When should we use SwtichAction?

593


How to override the default error message that can come during file uploading process?

569