JSTL Formatting tags

The formatting tags provide support for message formatting, number and date formatting etc. The url for the formatting tags is http://java.sun.com/jsp/jstl/fmt and prefix is fmt.

The JSTL formatting tags are used for internationalized web sites to display and format text, the time, the date and numbers. The syntax used for including JSTL formatting library in your JSP is:

Formatting TagsDescriptions
fmt:parseNumberIt is used to Parses the string representation of a currency, percentage or number.
fmt:timeZoneIt specifies a parsing action nested in its body or the time zone for any time formatting.
fmt:formatNumberIt is used to format the numerical value with specific format or precision.
fmt:parseDateIt parses the string representation of a time and date.
fmt:bundleIt is used for creating the ResourceBundle objects which will be used by their tag body.
fmt:setTimeZoneIt stores the time zone inside a time zone configuration variable.
fmt:setBundleIt loads the resource bundle and stores it in a bundle configuration variable or the named scoped variable.
fmt:messageIt display an internationalized message.
fmt:formatDateIt formats the time and/or date using the supplied pattern and styles.
Next TopicJSTL XML tags