November 2002
Intermediate to advanced
608 pages
12h 17m
English
Topics in This Chapter
Overview
The Config Class
Accessing Configuration Settings in Servlets
Accessing Configuration Settings in Life-Cycle Listeners
Accessing Configuration Settings in Custom Actions
Most of the JSTL actions discussed in the following chapters use configuration settings to create or access resources such as SQL data sources or resource bundles; for example, the following code prints a localized message:
<fmt:setLocale value='fr-CA' scope='request'/> <fmt:message key='introduction-page-title'/>
In the preceding code fragment, the <fmt:setLocale> action assigns a value to a configuration setting known as FMT_LOCALE.[1] The <fmt:message> action uses that configuration setting to retrieve a localized ...