Chapter 6. Creating JSP Components: JavaBeans

Today, you will learn how to create your own Java classes, as well as JavaBeans. As you develop your Java code, it'll get longer and longer, and after a while, it's not going to fit easily into scriptlets anymore. As it turns out, JSP servers are specially built to let your JSP pages interact with Java classes that you write yourself. Now that our applications are getting more involved, we're going to see how this works. Here's an overview of today's topics:

  • Creating and compiling Java classes

  • Creating Java methods

  • Using Java classes from JSP

  • Creating Java packages

  • Creating and using JavaBeans

  • Creating Bean properties

As we'll see, a JavaBean will give you access to properties and methods that you can use ...

Get Sams Teach Yourself JavaServer Pages™ in 21 Days 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.