Java Reference
In-Depth Information
As we have seen before, the easiest way to deploy our web application and execute
our file in the browser is to right-click anywhere in the file and select Run File from
the resulting pop up menu.
All table rows are generated by iterating through the collection. The values we
see in each cell are the values of the firstName and lastName of each instance of
CustomerBean in the ArrayList we iterated through.
JSTL includes an SQL tag library that allows us to quickly and easily write web
applications that interact with a relational database. NetBeans supports the most
commonly used tags in the SQL tag library, allowing us to use these tags by simply
dragging them from its palette into our JSP pages.
All JSTL tags are supported in NetBeans, however, only a subset of them
is available in the NetBeans palette to be dropped in our JSPs. For tags not
included in the palette, we simply need to type the appropriate tag in the
page markup. Code completion is available for all JSTL tags.
Although SQL JSTL tags allow us to quickly create web applications that interact
with a database, they tend to create applications that are hard to maintain, since they
mix database access with display logic. For this reason, these tags are suitable for
prototyping and for "throwaway" applications.
Search WWH ::

Custom Search