struts-menu & i18n - switching locale on user login

"Norbert Rieger" <info.nrieger-S0/[email protected]>
Newsgroups gmane.comp.java.struts-menu.user
Message-ID <[email protected]>
Hi,
I wan't to switch the "locale" based on user settings.
I'm using struts and JSTL 1.2, switching locale works fine with:

        // change struts' locale
        session.setAttribute(org.apache.struts.Globals.LOCALE_KEY,
newLocale);

        // change JSTL's locale
        Config.set(session, Config.FMT_LOCALE, newLocale) ;

But menu titles wan't switch, the appear always in the same language.

What do I have to set / change ?

I google I found a "solution", using MenuDisplayer's locale attribute, but I
want work for me. Maybe am setting the attribute wrong.
How do I have to set this attribute to read the JSTL/Struts locale ?

Thanxs a lot for your help.

Norbert



-------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.