Remarks
The select action from selectlib.tld executes an SQL SELECT query on some database.
The body of the element is processed once for every row returned by the query.
In our page, each evaluation of the body generates one row of an HTML table (this is not part of the library.)
The field action from the selectlib library returns the column value with index specified by the column attribute.
Now all HTML generation is handled in the JSP page—the Java code is only responsible for accessing the data base and managing iteration over the result set.
A similar library could be used to generate the HTML menu in the example from the previous lecture.