5.5. Advanced Servlet Topics
There's quite a bit more that you can do with servlets. Although we didn't need these features for our examples, I thought they were important enough to give at least a mention to these servlet capabilities.
5.5.1. Server-Side Includes
Looking at the way a servlet is structured, it is typical to wonder if there's a better separation possible between the behavior of the servlet (the business logic) and the HTML markup embedded in the servlet. One of the first attempts to make a more logical separation of these was support for server-side includes in some Web servers.
In the Apache Web Server, for example, there was an add-on package called JSSI that provided the ability to pull all of the HTML out into a separate file. ...
Get J2EE™ and JAX™: Developing Web Applications and Web Services 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.