This week's book giveaway is in the OO, Patterns, UML and Refactoring forum. We're giving away four copies of Refactoring for Software Design Smells: Managing Technical Debt and have Girish Suryanarayana, Ganesh Samarthyam & Tushar Sharma on-line! See this thread for details.
Hi, I need to use internationalization (creating various "properties" files in various languages). Those internationalized essages will be printed out using either : - struts ( <bean:message > , in the older parts of the system - JSTL in the new parts of the system.
The question: could anyone tell which language will be used by default: does struts/jstl rely on the *server*'s default language (defined on the operating system), or on the *client*'s language (inferred from the request headers) ?
E.g. suppose I have properties files for both english & french. Also suppose the server is english , and the client is french (indicated by its request headers). Which message will be printed out - english or in french ?
Hi Struts I18n use client default language for choosing resource file to use in html message tag. about jstl , it use fmt message tag which select the resource file by using client default locale (eg : en_US or it could be two character like hr which indicate just the language.) in both of this tag you can override the client locale.