oups, stupid reply to myself!
i forgot to say i'm using tomcat (embedded) with jboss on windows 2000,
i don't know if this matters.
i'll try it with my linux install at home..
eric sperano.
é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:
>
> com.myproject.ApplicationResources.properties (english)
> com.myproject.ApplicationResources_fr.properties (french)
>
> in my web.xml, i set the init-param "application" to
> "com.myproject.ApplicationResources"
>
> i load my servlet and the log says it has load my ResourceBundle
> successfully.
>
> 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 printed..
> 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
>
>
>
>
>
>