hi there, I'm fresh with struts and its tiles. I'd like learn i18n and I'm now having a question about this tag <html:html locale="true"> It is shown on a tutorial by seems to be dreprecated, the alternative is attribute lang="....
what's the difference? Which I should use in i18n application? Thanks in advance
trying to decode a woman mind....
posted 8 years ago
If you specify lang="true" in an <html:html> tag, Struts simply takes the language used in the locale it stores in the session to produce a lang="<some language code>" attribute on the rendered <html> tag. This doesn't really do much. It's more of a meta-data attribute that can be used by search engines and browsers, and doesn't really affect the actual language content of the page. See this link.
Regarding your original question: Which I should use in i18n application? The answer is pretty obious. You use the one that isn't deprecated. Struts just changed the attribute name in later versions so that it matched the attribute of the plain html tag it renders. [ March 26, 2007: Message edited by: Merrill Higginson ]