Reading Bean Properties
A bean’s data is represented by its properties. The
CartoonBean
used in Example 6-1
has only one property, named fileName
, but other
beans may have many different properties. The
fileName
property’s value is the
name of an image file that contains a cartoon. There are two ways to
insert a bean property value in a JSP page. Let’s
look at them one at a time.
Get JavaServer Pages, 3rd Edition 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.