This week's book giveaways are in the Java EE and JavaScript forums.
We're giving away four copies each of The Java EE 7 Tutorial Volume 1 or Volume 2(winners choice) and jQuery UI in Action and have the authors on-line!
See this thread and this one for details.
The moose likes Struts and the fly likes how to get the display tag behave for the locale chage. Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of The Java EE 7 Tutorial Volume 1 or Volume 2 this week in the Java EE forum
or jQuery UI in Action in the JavaScript forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "how to get the display tag behave for the locale chage." Watch "how to get the display tag behave for the locale chage." New topic
Author

how to get the display tag behave for the locale chage.

Satish Kumar
Ranch Hand

Joined: Oct 16, 2006
Posts: 84
I am using the display tag in my application which has Column Names and the customized Pagination header coming from the properties file.
I am setting the object "org.apache.struts.action.LOCALE" in session with the current locale to get the labels and texts to come from the properties file and it works fine.
The problem is that the display tag does not get the locale applied and it gets the values for the Column names and Pagination header from the default properties file (ApplicationResources) and not from the one which is being used by the other labels and texts on the page according to the locale. Please tell me what setting will make display tag pick the right locale applicationResources file.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: how to get the display tag behave for the locale chage.