Skip to Main Content
Core JSTL: Mastering the JSP™ Standard Tag Library
book

Core JSTL: Mastering the JSP™ Standard Tag Library

by David M. Geary
November 2002
Intermediate to advanced content levelIntermediate to advanced
608 pages
12h 17m
English
Pearson
Content preview from Core JSTL: Mastering the JSP™ Standard Tag Library

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

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

JSTL: JSP Standard Tag Library Kick Start

JSTL: JSP Standard Tag Library Kick Start

Jeff Heaton
Core JSP

Core JSP

Damon Hougland, Aaron Tavistock

Publisher Resources

ISBN: 0131001531Purchase book