Use internationalization in Struts (I18N)

xiaoxiao2021-03-06  21

Using Internationalization (I18N) I18N in Struts can meet the internationalization of the system, its principle is to put all the flags on the page into a message resource file, different languages ​​provide different message resource files, when users The login system is that the system is based on the language you logged in, selecting the different message resource files, so you can see different effects. First, the settings of the configuration file actually I18n is still relatively simple, first you want to configure the path to configure the message resource file in the struts-config.xml configuration file, as shown below: ------------ -------------------------------------------------- ------------------------------------

Ayuan

9CBS certified blog expert

Blog expert

Huawei old employees

Big Data

More than ten years, in Huawei, Internet Corporation's experience, profound understanding and practical experience in CRM, big data, mainly sharing various project experience, including architecture, Java, big data and other articles

转载请注明原文地址:https://www.9cbs.com/read-42461.html

New Post(0)