[ Team LiB ] Previous Section Next Section

Hour 14. Interacting with JavaBeans

What You'll Learn in This Hour:

  • How to instantiate a JavaBean for use within a JSP

  • How to access and set JavaBean properties

  • How to use JavaBeans by referring to the interface or superclass of the bean

  • How to use JavaBeans in a Web application

When constructing Web applications, you will often find that one of the following is true:

  • You want to reuse packages of functionality.

  • You want to partition functionality into a freestanding component that your JSP interacts with, so that your JSP is simpler and easier to understand.

To do this, you can create Java classes and use them in your JSP in an expression or scriptlet. However, JSPs also permit you to use JavaBeans, which can be accessed through standard actions.

    [ Team LiB ] Previous Section Next Section