What is MVC Architecture?

Answer Posted / anurag somani

Model-View-Controller (MVC) is a design pattern that
simplifies application development and maintenance. It
achieves this by separating the application into three
logical components:
Model:The model layer is responsible for the business
logic of an application. It will encapsulate access to data
stores and will provide a reusable class library. Typically,
within the model, you will find facilities for database
abstraction, e-mail delivery, validation, and authentication.
View:The view layer is typically what would be considered
web design, or templating. It controls the look and feel of
data and provides facilities to collect data from the user.
Technologies exclusively found in the view are HTML, CSS,
and JavaScript.
Controller:The controller layer glues everything together
and merges the styling of the view with the functionality of
the model. It is responsible for collecting input data from
the view and deciding program execution. The controller will
call model facilities and interpret the returning data so
that it can be rendered by the view. It is also responsible
for all application exception and flow control.

Is This Answer Correct ?    1 Yes 6 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How we can controlled duplicate form submission in struts?

704


How can we write our own interceptor and map it for action?

791


What does action do in struts?

735


What are the features of struts?

772


If the framework doesn’t do what I want, can I request that a feature be added?

710


Explain about the validation steps which have to be carried during validation of client-side address?

745


What is struts.devmode?

786


How an actionform bean is created?

745


What are the some useful annotations introduced in struts2?

771


What are the 5 constants of action interface?

767


What are the reasons for an error message not being displayed while developing struts application?

733


Explain integrate log4j in struts2 application?

776


Why we use struts in java?

705


How many action classes can be used in struts application?

718


What is the purpose of @after annotation?

799