Presentation is loading. Please wait.

Presentation is loading. Please wait.

Model View Controller Architecture of Java Web Applications Dr. M V S Peri Sastry, Ph.D.[BITS-Pilani]

Similar presentations


Presentation on theme: "Model View Controller Architecture of Java Web Applications Dr. M V S Peri Sastry, Ph.D.[BITS-Pilani]"— Presentation transcript:

1 Model View Controller Architecture of Java Web Applications Dr. M V S Peri Sastry, Ph.D.[BITS-Pilani]

2

3 Model View Controller

4

5 L 5.1

6 Model consists of data and the functions that operate on data Java bean that we use to store data is a model component EJB can also be used as a model component L 5.2 Model

7 View is the front end that user interact. View can be a HTML JSP Struts ActionForm L 5.3 view

8 Controller component responsibilities 1.Receive request from client 2.Map request to specific business operation 3.Determine the view to display based on the result of the business operation L 5.4 Controller

9 Advantages of MVC architecture 1) Clear separation between presentation logic and business logic. 2)Each object in mvc have distinct responsibilities. 3)All objects and classes are independent of each other. so change in one class does't need alternation in other classes. 4)Easy to maintain the code and future improvements.

10 Disadvantages Increased Complexity Time consuming Knowledge of multiple technologies are required If you change controller code then i. We need to recompile the class & redeploy the Application ii. We need to write separate code for that file

11 Thank you


Download ppt "Model View Controller Architecture of Java Web Applications Dr. M V S Peri Sastry, Ph.D.[BITS-Pilani]"

Similar presentations


Ads by Google