There are two models in Java web application design, conveniently called Model 1 and Model 2. Model 1 is page-centric and suitable for very small applications only. Model 2 is based on the Model-View-Controller (MVC) design pattern and the recommended architecture for all but the simplest Java web applications.
This chapter discusses Model 2 and provides three Model 2 sample applications. The first application features a basic Model 2 application with a servlet as the controller. The second one introduces the use of controller classes. The third one introduces a validator component for validating user input.
When you first learn JSP, your very first applications would normally enable navigation ...