Chapter 6. Configuration Settings

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 ...

Get Core JSTL: Mastering the JSP™ Standard Tag Library now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.