This week's giveaway is in the Spring forum.
We're giving away four copies of REST with Spring (video course) and have Eugen Paraschiv on-line!
See this thread for details.
The moose likes Struts and the fly likes struts2 i18n - default language Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of REST with Spring (video course) this week in the Spring forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "struts2 i18n - default language" Watch "struts2 i18n - default language" New topic

struts2 i18n - default language

debraj mallick
Ranch Hand

Joined: Mar 08, 2011
Posts: 188

hi all,

in my application i have two languages i.e. english and dutch, so i have created to properties file. but the problem is that my application is taken english as default,

if i put the above code in, then the default becomes dutch.

all i need is to set the languages from action, so that according to user i can change the language.

any help would be appreciated.
debraj mallick
Ranch Hand

Joined: Mar 08, 2011
Posts: 188

i have found the answer,
all we need to do is to set the "request_locale" form action, thats it.
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
subject: struts2 i18n - default language
It's not a secret anymore!