Spring's internationalization support
The HMS must have the capability to support many languages which is one of the marketing strategies to promote the business. Spring MVC supports internationalization (i18n) of a web application.
Configuration
The configuration starts with the declaration of org.springframework.web.filter.CharacterEncodingFilter
in the web.xml
. Some developers skip this part but for the HMS it is essential to include this class to specify or enforce character encoding if browsers typically do not set a character encoding by default. The application prefers to use the encoding setting UTF-8 to achieve the desired text.
<filter> <filter-name> encodefilter</filter-name> <filter-class> org.springframework.web.filter.CharacterEncodingFilter ...
Get Spring MVC Blueprints now with O’Reilly online learning.
O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.