JSTL parsing -- 007 -- fmt tag library 02

Source: Internet
Author: User
Tags i18n
Dear friends, there have been many recent events and no updates, comeon! 1. & lt; fmt: bundle & gt; & lt; fmt: message & gt; & lt; fmt: param & gt; the ResourceBundle class is used in the resource internationalization label java to solve the i18n problem. Simply put, all Chinese prompts are put in message_zh_CNproperty. There are many issues recently, but they are not updated. come on! 1, / / The ResourceBundle class is used in the java resource internationalization label to solve the i18n problem. Simply put, all Chinese prompts are put in the message_zh_CN.propertyies file, when a Chinese system accesses a program, the prompts in the Chinese file are automatically displayed. Use bundle, message, And param in the jstl tag library to implement this function. [html] Resolution of each attribute: basename specifies the name of the resource file (messages. properties) all similar to messages_XX.properties are loaded. The bundle label internally uses the message label to display the resource file. The key attribute corresponds to the key attribute of the sub-tooth properties file resource, if the resource can use parameters, use the param label to pass in the parameter. hello, I don't understand, messages. propertiesprompt. hello = hello; do you understand this ??? 2, Tag bundle is only valid for internal tags, while setBundle is valid for all tags [html] Heloworld See the difference. Map the resource to the variable specified by ar. scope is scope 3, It is shown that the data formats in different regions have already been reduced to the numbers of different countries. For example, 1,005 has different values in different countries. The United States is 1.005, and Germany is, the difference is not great. At this time, the formatNumber function is obvious. It can output different formats according to different Locale. FormatNumber contains many attributes. The value must be the type of the number to be declared (number, currency, percent) by the format of the number type, and the pattern numeric format ('100. %. 00 ', etc.), currencySymbol output currency symbol, currencyCode currency code, groupingUsed output separator, maxIntegerDigits integer maximum number of digits, if the minimum value of the number of digits in the upper minIntegerDigits is not enough, the value 0 in the upper position is rounded to the minimum value of minFractionDigits. scope declaration variable scope
Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.