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 the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.