Hi,
I want to switch the "locale" based on user settings.
I'm using struts menus. I set the locale in the session:
// change struts' locale
session.setAttribute(org.apache.struts.Globals.LOCALE_KEY,
newLocale);
But menu titles won't switch, they appear always in the same language.
Even if I set locale in MenuDisplayer tag input attribute, its not working.
<menu:useMenuDisplayer name="CoolMenu4" repository="subRepository"
bundle="bundle_name" locale="org.apache.struts.action.LOCALE">
<menu:displayMenu name="file"/>
<menu:displayMenu name="edit"/>
<menu:displayMenu name="view"/>
</menu:useMenuDisplayer>
I noticed that when the server reloads the page (server restart or changes in
the menu.jsp and refresh menu.jsp), the menu titles are displayed correctly (in
the correct language).
Thanx a lot for your help.
--Pallavi
---------------------------------
Pinpoint customers who are looking for what you sell.
-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
struts-menu-user mailing list
struts-menu-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/struts-menu-user