background image

JSTL Resource Bundle

<< Scripting in JSP Pages | Book Catalog >>
<< Scripting in JSP Pages | Book Catalog >>

JSTL Resource Bundle

To learn how to configure the example, refer to the deployment descriptor (the web.xml file),
which includes the following configurations:
A display-name element that specifies the name that tools use to identify the application.
A context-param element that specifies the JSTL resource bundle base name.
A listener element that identifies the ContextListener class used to create and remove
the database access.
A servlet element that identifies the Dispatcher servlet instance.
A set of servlet-mapping elements that map Dispatcher to URL patterns for each of the
JSP pages in the application.
Nested inside a jsp-config element are two jsp-property-group elements, which define
the preludes and coda to be included in each page. See
"Setting Properties for Groups of JSP
Pages" on page 179
for more information.
Figure 5­2
shows the bookcatalog.jsp page from the Duke's Bookstore application. This page
displays a list of all the books that are available for purchase.
The Example JSP Pages
The Java EE 5 Tutorial · September 2007
140