Win a copy of Svelte and Sapper in Action this week in the JavaScript forum!
  • 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 all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Ron McLeod
  • Paul Clapham
  • Bear Bibeault
  • Junilu Lacar
Sheriffs:
  • Jeanne Boyarsky
  • Tim Cooke
  • Henry Wong
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • salvin francis
  • Frits Walraven
Bartenders:
  • Scott Selikoff
  • Piet Souris
  • Carey Brown

struts.properties struts.locale properties

 
Greenhorn
Posts: 14
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
im an untrained about struts2
im learning
im using a globalMessage.properties and globalMessage_tr.properties to multi language support for my project
i set this file on struts.properties file's like
struts.custom.i18n.resources=globalMessage

here is globalMessage.properties

here is globalMessage_tr.properties


my locale language is turkish
and coming my browser the value of on the globalMessage_tr.properties

but i want set allow a user to select a which language to see on webpage
how can i set struts.locale parameter ?
is it possible to set it using a querysting parameter?
regards
ozgur
 
Ranch Hand
Posts: 2908
1
Spring Java Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Not much familiar with the Struts 2, but I will google Struts 2 + i18n + change locale
 
Thanks tiny ad, for helping me escape the terrible comfort of this chair.
the value of filler advertising in 2020
https://coderanch.com/t/730886/filler-advertising
    Bookmark Topic Watch Topic
  • New Topic