O'Reilly logo

Core Servlets and JavaServer Pages™: Volume 1: Core Technologies, 2nd Edition by Larry Brown, Marty Hall

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

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 ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required