You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by Joe Hertz <jh...@speakeasy.net> on 2004/04/16 00:34:03 UTC

Locale="true" in html:html tag

This has been deprecated in 1.2.

My internationalized pages appear not to need this at all with 1.2. The
Locale seems to get detected from the browser just fine without it.

Since, I never got around to serious internationalization while I was
using 1.1, I thought this was necessary for the jsp page to auto-select
it's locale. Am I misunderstanding what the purpose of locale="true"
was? 

If not, how have things changed? Is it now assumed to be the default
unless a lang specific lang parameter is specified in the html:html tag
or something? 

Basically it seems like it just went away, and now the functionality it
provided now shows up when it's needed "as if by magic", which I'm sure
ain't so. :-)

What exactly has changed here? I'm kind of curious (and okay, somewhat
suspicious) now...

TIA

-Joe



---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org


Re: Locale="true" in html:html tag

Posted by Craig McClanahan <cr...@apache.org>.
Joe Hertz wrote:

>This has been deprecated in 1.2.
>
>My internationalized pages appear not to need this at all with 1.2. The
>Locale seems to get detected from the browser just fine without it.
>
>Since, I never got around to serious internationalization while I was
>using 1.1, I thought this was necessary for the jsp page to auto-select
>it's locale. Am I misunderstanding what the purpose of locale="true"
>was? 
>
>If not, how have things changed? Is it now assumed to be the default
>unless a lang specific lang parameter is specified in the html:html tag
>or something? 
>
>Basically it seems like it just went away, and now the functionality it
>provided now shows up when it's needed "as if by magic", which I'm sure
>ain't so. :-)
>
>What exactly has changed here? I'm kind of curious (and okay, somewhat
>suspicious) now...
>
>  
>
No conspiracies here :-).  The deprecation comment about the "locale" 
attribute explains what is going on, and the description of the "lang" 
attribute describes the algorithm that is used.

http://jakarta.apache.org/struts/userGuide/struts-html.html#html

This page, like all the rest of the Struts documentation, is also 
available locally if you unpack (and perhaps deploy on a server) the 
struts-documentation.war webapp.

>-Joe
>
>  
>
Craig


---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org