O'Reilly logo

Sams Teach Yourself JavaServer Pages™ in 21 Days by Steven Holzner

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

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