The Example JSP Pages
This chapter illustrates JSTL using excerpts from the JSP version of the Duke's Bookstore application discussed in Chapter 4. Here, they are rewritten to replace the JavaBeans component database access object with direct calls to the database via the JSTL SQL tags. For most applications, it is better to encapsulate calls to a database in a bean. JSTL includes SQL tags for situations where a new application is being prototyped and the overhead of creating a bean may not be warranted.
The source for the Duke's Bookstore application is located in the <INSTALL>/javaeetutorial5/examples/web/bookstore4/ directory created when you unzip the tutorial bundle (see About the Examples, page xxxiv).
To deploy and run the application using NetBeans 5.5, follow these steps:
To deploy and run the application using Ant, follow these steps:
To learn how to configure the example, refer to the web.xml file, which includes the following configurations:
See Troubleshooting (page 62) for help with diagnosing common problems.