11
Apex T. G. India Pvt. Ltd Introduction MVC (Model View Controller)

MVC Architecture in JAVA

Embed Size (px)

DESCRIPTION

MVC provide the Model View Controller architecture pattern. It is an architecture pattern that provide the facility to develop web application. Visit us - www.apextgi.in

Citation preview

Page 1: MVC Architecture in JAVA

Apex T. G. India Pvt. Ltd

Introduction

MVC(Model View Controller)

Page 2: MVC Architecture in JAVA

1

MVC

MVC provide the Model View Controller architecture

pattern. It is an architecture pattern that provide the facility

to develop web application .

Model: - Represent Data and Business logic.

View: - Represent the presentation logic.

Page 3: MVC Architecture in JAVA

1

MVC

Controller: - Represent the workflow.

MVC provides two type of Architecture to developer’s web

application.

Model-1 Architecture

Model-2 Architecture

Page 4: MVC Architecture in JAVA

1

Benefits Independency between business logic and view.

Isolates the application logic from the user interface.

Permitted the individual development, testing and

maintenance for each components.

Provide Secure Web-app development Model.

Reusability

Page 5: MVC Architecture in JAVA

1

Model-1 Architecture In this architecture client directly access the pages in the

web container.

Application developer implements the presentation logic

code and workflow code in the single page (JSP page) and

data and business logic are in other.

Page 6: MVC Architecture in JAVA

1

Model-1 Architecture

Model-1 Architecture workflow is as following:-

Page 7: MVC Architecture in JAVA

1

Model-2 Architecture In Model-2 architecture client don't access the web

container directly.

Client first send the request to controller then

Controller(Servlet) process this request and the controller

component uses the model (java Bean) for implementing

business logic then process the request to display as a result

page (JSP) in the client browser.

Page 8: MVC Architecture in JAVA

1

Model-2 Architecture

Model-2 Architecture workflow is as following:-

Page 9: MVC Architecture in JAVA

1

Complete Working Structure

Page 10: MVC Architecture in JAVA

1

Framework Some of Important Mvc based Framework in Java:

Struts 1.X

Struts 2.X

Spring MVC

Page 11: MVC Architecture in JAVA

Thanks

facebook.com/apex.tgi

twitter.com/ApextgiNoida

pinterest.com/apextgi

Stay Connected with us for more chapters on JAVA