Topics in this Chapter
Model 2: An MVC Approach
A Model 2 Example
The Deployment Descriptor
Successful Login Use Case
Creating a New Account
Developing web pages in HTML is easy. Designing flexible and maintainable web applications that combine HTML, JSP, and Java and access databases or legacy systems is not. This chapter provides insights into the use of JSP, beans, and servlets the latter by examining some common approaches to web application design.
The authors of the JSP specification designed JSP to be flexible. You can implement JSP-based web applications in many ways; for example, you can approach the project as follows:
Freely mix HTML and JSP scriptlets
Delegate functionality to Java beans
Use servlets, ...