This week's book giveaways are in the Java EE and JavaScript forums.
We're giving away four copies each of The Java EE 7 Tutorial Volume 1 or Volume 2(winners choice) and jQuery UI in Action and have the authors on-line!
See this thread and this one for details.
The moose likes Struts and the fly likes Tiles only change language with browser language and not with Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of The Java EE 7 Tutorial Volume 1 or Volume 2 this week in the Java EE forum
or jQuery UI in Action in the JavaScript forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "Tiles only change language with browser language and not with "request_locale"" Watch "Tiles only change language with browser language and not with "request_locale"" New topic
Author

Tiles only change language with browser language and not with "request_locale"

Preet Dhillon
Greenhorn

Joined: May 20, 2008
Posts: 24
I have two different languages for my Struts 2 application. I have properties files for each language extension, default.properties and default_fr.properties.

I am using the following code to switch the language and all works fine.



Then, I went to add tiles. I have tiles.xml and tiles_fr.xml in my WEB-INF. Language switching for tiles work independent of the "request_locale". It only works when I change language in the browser.

I have tried making various changes to web.xml and struts.xml but can't seem to figure out how to get the tiles to change language with the hyperlink.

Any advice would be appreciated.

Thanks in advance.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Tiles only change language with browser language and not with "request_locale"