• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

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

 
Greenhorn
Posts: 24
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
reply
    Bookmark Topic Watch Topic
  • New Topic