This week's book giveaway is in the OCAJP forum.
We're giving away four copies of Programmer's Guide to Java SE 8 Oracle Certified Associate (OCA) and have Khalid A Mughal & Rolf W Rasmussen on-line!
See this thread for details.
Win a copy of Programmer's Guide to Java SE 8 Oracle Certified Associate (OCA) this week in the OCAJP forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

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

 
Preet Dhillon
Greenhorn
Posts: 24
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic