Chapter 17. Architecting Java Web Applications

Architecting Java Web Applications

Now that you know the techniques, tips, and tricks for working with servlets and JSP, it is time to look at the architectural designs of a Java web application. Two models are commonly used and this chapter explains them and shows why JSP does not make servlets obsolete. In fact, in complex applications, JSP pages and servlets go hand in hand.

The terms for the two architectural designs first appeared in the early drafts of the JSP specifications: Model 1 and Model 2. These two terms are not mentioned in the more current JSP specification documents. However, the designs are still widely in use today. ...

Get Java for the Web with Servlets, JSP, and EJB: A Developer’s Guide to J2EE Solutions now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.