Using JavaBeans with JSPs

JavaBeans are Java classes coded using a set of methods with a standard naming convention. With these classes it is assumed that class data members (or attributes) will be declared with private accessibility and will be manipulated using only get and set methods; the get and set methods are named with the naming standard get<attribute_name> and set<attribute_name>, where the attribute name is the name of the attribute or private data member that is to be set.

These getXX and setXX methods are sometimes referred to as accessor and mutator methods of the class. JavaBeans do not require the implementation of a Java interface and do not need to be a subclass of any particular class; they are just another Java class with ...

Get J2EE™ and Beyond: Design, Develop, and Deploy World-Class Java™ Software 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.