File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Struts and the fly likes struts.properties struts.locale properties Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "struts.properties struts.locale properties" Watch "struts.properties struts.locale properties" New topic
Author

struts.properties struts.locale properties

nobeltr ozgur
Greenhorn

Joined: Sep 20, 2009
Posts: 14
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
Sagar Rohankar
Ranch Hand

Joined: Feb 19, 2008
Posts: 2902
    
    1

Not much familiar with the Struts 2, but I will google Struts 2 + i18n + change locale


[LEARNING bLOG] | [Freelance Web Designer] | [and "Rohan" is part of my surname]
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: struts.properties struts.locale properties