What is MVC Architecture?

Answer Posted / ajit shanbhag

MVC is Model View Controller architecture. There is nothing
called as MVC1 architecture. The types are differentiated
as follows:

1. MVC -> Here the jsp acts as the controller.
2. MVC2 -> Here the flow is controlled by a single servlet.

Basically, the intension of the MVC architecture is to
provide flexibility and improve the performance of the
application by seperating the applcation into three layers.
The Model layer consists of the business logic and
interacts with the database. This consists of the java
beans, the EJBs etc. The output to the client is presented
by using the View layer. This consists of the jsps, html
etc. The controller controls the flow of the application.
In MVC application the jsp acts as the controller which
recieves the request and sends the response. Whereas in
MVC2 architecture there is central servlet which acts as a
single point control for the applcation flow. The response
is provided by the jsp.

Is This Answer Correct ?    42 Yes 55 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is an interceptor stack?

763


What is apache struts vulnerability?

711


What is the role of a handler in mvc based applications?

968


Which interceptor is responsible for i18n support?

705


Is struts compatible with other java technologies?

709


What kind of mvc is struts 2?

766


What do you mean by ognl?

767


What is the purpose of @stringlengthfieldvalidator annotation?

825


Does apache struts run on windows?

742


How to use forward action to restrict a strut application to mvc?

794


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

806


What is strut action mapping?

719


Explain the life cycle of a request in struct2 application?

691


What is the apache struts vulnerability?

710


What is the purpose of redirect result type?

769