In this chapter, we covered the basics of the Model-View-Controller (MVC) design pattern, its history, and how it is implemented in Struts. We also covered the origins of the terms Model 1 and Model 2 JSP development. Struts is based on Model 2. The Model-View-Controller design pattern is a time-proven architecture for building software that manages interaction with users (using Views), implements business rules that are dependent on user input (using Controllers), and relies on data that exists in a remote database or system (accessed using Model components ). MVC originated at the Xerox PARC in the late 1970s, although its roots go back even further. The terms Model 1 and Model 2 originated in the JSP 0.92 specification. The primary characteristics of Model 1 are
The primary characteristics of Model 2 are
Struts implements the MVC design pattern and is based on Model 2. Struts implements MVC using
|