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 8. Formatting Actions

Topics in This Chapter

  • Formatting and Parsing Numbers

  • Formatting and Parsing Dates and Times

  • Using Time Zones

  • Determining a Formatting Locale

If you want your website to be accessible to as many people as possible, it's crucial to localize text, as discussed in “I18N Actions” on page 248. But it's just as important to localize numbers, dates, and currencies; for example, if you publicized an event on your website and you specified the date as 06/12/2004, Americans would arrive on June 12th, whereas most Europeans would arrive on December 6th. Fortunately, JSTL provides six actions that you can use to format and parse numbers, currencies, percents, and dates:

  • <fmt:formatNumber>

  • <fmt:parseNumber>

  • <fmt:formatDate>

  • <fmt:parseDate> ...

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