struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Ted Husted" <>
Subject Re: i18n
Date Wed, 17 Jan 2001 01:21:30 GMT
I believe there's a gotcha where the default locale is set according to
the server's default, rather than the user's browser settings.

Here's an example of adding a drop-down box to select a language 


and another i18n example


*********** REPLY SEPARATOR  ***********

On 1/16/2001 at 4:41 PM éric spérano wrote:

Hello everyone,

i'm a new struts user and i have a question about i18n.

i did two properties files, let's say:            (english)        (french)

in my web.xml, i set the init-param "application" to 

i load my servlet and the log says it has load my ResourceBundle 

but now, how can i associate a specific language to a HttpSession??

as an example, i used the logon.jsp shipped with the struts example..

i set my browser (ie 5) to select French as my "favorite" language, but

when i access the logon.jsp, it's always the english message that are 
i added a print out out request.getLocale() in my jsp and it prints the

good locale, so my browser config is correct.

can someone please indicate me what is missing/wrong?

thanks a lot! and keep up the good work.

eric sperano
modesys informatique

View raw message