3.6. Using JavaBeans with JSP
This section discusses the third general strategy for inserting dynamic content in JSP pages (see Figure 3-14): by means of JavaBeans components.
Figure 3-14. Strategies for invoking dynamic code from JSP.
The JavaBeans API provides a standard format for Java classes. Visual manipulation tools and other programs can automatically discover information about classes that follow this format and can then create and manipulate the classes without the user having to explicitly write any code. Use of JavaBeans components in JSP provides three advantages over scriptlets and JSP expressions.
No Java syntax. By using beans, ...
Get More Servlets and JavaServer Pages™ 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.