O'Reilly logo

Struts 2 Design and Programming: A Tutorial by Budi Kurniawan

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Chapter 1. Model 2 Applications

As explained in Introduction, Model 2 is the recommended architecture for all but the simplest Java web applications. This chapter discusses Model 2 in minute detail and provides two Model 2 sample applications. A sound understanding of this design model is crucial to understanding Struts and building effective Struts applications.

Model 2 Overview

Model 2 is based on the Model-View-Controller (MVC) design pattern, the central concept behind the Smalltalk-80 user interface. As the term “design pattern” had not been coined yet at that time, it was called the MVC paradigm.

An application implementing the MVC pattern consists of three modules: model, view, and controller. The view takes care of the display of the application. ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required