Chapter 9. Interacting with JavaBeans
In this chapter
<%! tags provide you with a way to access Java beans. Pages that use these tags, however, tend to look cluttered. You would be better off accessing Java bean properties in a Java Server Page using standard tags. That way, your page looks like a normal HTML page with a few extra tags. The
<jsp:useBean> tag gives you the ability to create Java beans, and the
<jsp:setProperty> tags allow you to manipulate bean properties.
When you want to use a Java bean within a Java Server Page, use the
tag to either create a new instance of the bean or use an existing bean. The idea behind ...