O'Reilly logo

Core JSTL: Mastering the JSP™ Standard Tag Library by David M. Geary

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

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

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required