Win a copy of Java Mock Exams (software) this week in the Programmer Certification (OCPJP) forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Dynamic change of locale based on a click of a link

 
vikram nalagampalli
Ranch Hand
Posts: 91
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am trying to achieve the following in my application, giving user ability to click a link that changes the locale of the application and there by load corresponding locale based ApplicationResources.properties.
So my questions are
1. I would like to know the best practice. i.e. when user clicks the link (france), i would like to know if i make it a new action associated with it or do it some other way.
2. I also need to know which method will let me come back to same page when i click this link(france).
I am curently executing an action associated with the link and changing the locale in the session. But i am not able to return to the same page. i am not sure how i can get back to same page.
Thanks in advance
 
Happiness is not a goal ... it's a by-product of a life well lived - Eleanor Roosevelt. Tiny ad:
the new thread boost feature: great for the advertiser and smooth for the coderanch user
https://coderanch.com/t/674455/Thread-Boost-feature
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!