Chapter 7. Integrating JavaServer Pages with JavaBeans and Servlets

In Chapter 6, our JavaServer Pages (JSPs) weren't completely standalone. They interacted with other Java objects, such as the Team and Standings objects. But whenever they did so, it was by way of familiar Java syntax expressed as a scriptlet or an expression. As we've said, JSPs are targeted at page designers, and this is therefore not a very good model for how we should integrate JSPs with other Java objects.

By “integrating,” I don't mean that we're going to load our JSPs onto the system bus and send them off to a different container. Instead, we just want our JSPs to play well with other objects, while still preserving a JSP-like syntax. There are four approaches we'll look ...

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.