Goal:
U master the internationalization of Java Web applications;
U master the formatting of the numbers in the page information;
You have the formatting of the date and time in the page information.
With the internationalization of the global economy, many businesses are involved in a number of countries and languages, which requires the company's Web applications to support multiple languages at the same time, the system will be based on the language you use to determine which language to serve you, called internationalization. For example, the operating system you are using is in Chinese, and the site you see will be in Chinese. If you are using a Japanese version of the operating system, the site you see will be in Japanese. This chapter implements the internationalization of the user management interface.
11.1 Target Demo
11.1.1 function Description
The user management interface that was completed earlier uses Chinese. Now hope that users can choose their own language, if the choice of Chinese, then display the Chinese interface, if the user choose English, then display the English interface. If the user does not have a choice, it is displayed according to the default language of the user's browser.
11.1.2 Operation effect
If the reader's browser's default language is Chinese, see the user management interface as shown in Figure 11.1. If the default language of the reader's browser is English, see the user management interface as shown in Figure 11.2.
Figure 11.1 The Default User management interface