What is MVC Architecture?

Answer Posted / deepak

This MVC architecture is just a virtual representation of
an application.

Consists of 3 parts:
1> Model
2> View
3> Controller

The main motive of implementing the MVC Architecture is to
seperate the application data as well as the bussiness
logic from the presentation data for the user.

Model: When someone declares and defines the class
attribute names as well as the methods in order to define
the underlying bussiness logic for the problem statement(in
java).

View: This the output what the client observes or views on
his system or terminal.Thsi is the GUI interface that the
client directly interacts with.

Controller: Is the medium of interaction between the user
view and the bussiness logic . In other words , it is the
medium of interaction vbetween the model and the view. It
retrives the information from the view and sends it to the
model for its processing.It ikntercepts user requests and i
turn control bussiness objects to fulfill these
requirements.

Is This Answer Correct ?    7 Yes 12 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is the use of web xml in struts2?

734


What is the purpose of redirect result type?

789


Describe validate() and reset() methods.

814


What are the contents on web.xml in struts application ?

762


Which interceptor is responsible for i18n support?

718


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

821


What is the purpose of @createifnull annotation annotation?

850


What is the purpose of @urlvalidator annotation?

769


Explain about logic match tag?

824


What is the role of action class in struts?

776


Explain how to work with error tags?

824


How does struts work?

753


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

819


Why use struts framework in java?

777


What does it cost to replace struts?

735