Chapter 14. Using JavaBeans Components in JSP Documents

Topics in This Chapter

  • Understanding the benefits of beans

  • Creating beans

  • Installing bean classes on your server

  • Accessing bean properties

  • Explicitly setting bean properties

  • Automatically setting bean properties from request parameters

  • Sharing beans among multiple servlets and JSP pages

This chapter discusses the third general strategy for inserting dynamic content in JSP pages (see Figure 14-1): by means of JavaBeans components.

Strategies for invoking dynamic code from JSP.

Figure 14-1. Strategies for invoking dynamic code from JSP.

Why Use Beans?

OK, so you already understand the benefit of using separate Java classes instead of embedding large ...

Get Core Servlets and JavaServer Pages™: Volume 1: Core Technologies, 2nd Edition now with the O’Reilly learning platform.

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