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 ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access