This week's book giveaway is in the JavaScript forum.
We're giving away four copies of Cross-Platform Desktop Applications: Using Node, Electron, and NW.js and have Paul Jensen on-line!
See this thread for details.
Win a copy of Cross-Platform Desktop Applications: Using Node, Electron, and NW.js this week in the JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

struts2 i18n - default language  RSS feed

 
debraj mallick
Ranch Hand
Posts: 188
Hibernate Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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 struts.properties, 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
Posts: 188
Hibernate Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
i have found the answer,
all we need to do is to set the "request_locale" form action, thats it.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!