MVC Architecture in JAVA

Preview:

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

Apex T. G. India Pvt. Ltd

Introduction

MVC(Model View Controller)

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.

1

MVC

Controller: - Represent the workflow.

MVC provides two type of Architecture to developer’s web

application.

Model-1 Architecture

Model-2 Architecture

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

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.

1

Model-1 Architecture

Model-1 Architecture workflow is as following:-

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.

1

Model-2 Architecture

Model-2 Architecture workflow is as following:-

1

Complete Working Structure

1

Framework Some of Important Mvc based Framework in Java:

Struts 1.X

Struts 2.X

Spring MVC

Thanks

facebook.com/apex.tgi

twitter.com/ApextgiNoida

pinterest.com/apextgi

Stay Connected with us for more chapters on JAVA

Recommended