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 the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.