O'Reilly logo

Sams Teach Yourself J2EE™ in 21 Days by Peter Roxburgh, Andy Longshaw, Debbie Law, Dan Haywood, Martin Bond

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

Simplifying JSP pages with JavaBeans

One of the problems with writing JSP pages is switching between the Java code and the HTML elements. It is easy to get confused and place syntax errors in the page that can be difficult and time consuming to identify. Using JavaBeans on a JSP page can reduce the amount of embedded Java code that has to be written. JavaBeans also help to separate out the presentation and logic components of your application, allowing HTML developers to lay out the Web pages and the Java programmers to develop supporting JavaBeans.

What Is a JavaBean?

A bean is a self-contained, reusable software component. Beans are Java classes that are written to conform to a particular design convention (sometimes called an idiom). The rules ...

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