my dog learned polymorphism*
The moose likes Struts and the fly likes Dynamic change of locale based on a click of a link Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "Dynamic change of locale based on a click of a link" Watch "Dynamic change of locale based on a click of a link" New topic
Author

Dynamic change of locale based on a click of a link

vikram nalagampalli
Ranch Hand

Joined: Oct 08, 2001
Posts: 91
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
 
Don't get me started about those stupid light bulbs.
 
subject: Dynamic change of locale based on a click of a link