JSTL FMT (format format) tag usage arrangement commonly used in JSP
JSTL tag provides support for internationalization (I18N). It can display different languages according to different regions of the requesting client. It also provides methods to format data and date. I18N capable formation tags library is required to realize these functions. The method of introducing this tag library is: <% @ taglib prefix = "FMT" URI=“ http://java.sun.com/jsp/jstl/fmt "% > the I18N format tag library provides 11 Tags, which can be functionally divided into three categories as follows: (1) digital date formatting. Formatnumber tag, formatdata tag, parsenumber tag, parsedate tag, timezone tag and settimezone tag. (2) read message resources. Bundle tag, message tag and setbundle tag. (3) Internationalization. Setlocale tag and requestencoding tag. The functions and usage of these tags will be described in detail next.
< FMT: formatnumber > tag
Format numbers into numbers, currencies, or percentages by region or custom
< FMT: parsenumber / > tag
Used to convert a string type number, currency, or percentage to a number type
< FMT: formatdate / > tag
Used to convert date type to string type date
< FMT: parsedate / > tag
Used to convert a string type time or date to a datetime type
< FMT: settimezone / > label
Used to set the default time zone or store the time zone in the property range