Solved

In struts how to programmatically set the Locale?

Posted on 2004-08-25
3
211 Views
Last Modified: 2010-05-18
I want to set the Locale that the application must use programmatically and not using LocaleAction...   how could i do that?
0
Comment
Question by:venkks
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
3 Comments
 
LVL 35

Accepted Solution

by:
TimYates earned 125 total points
ID: 11900290
Try something like:

    session.setAttribute( Globals.LOCALE_KEY, Locale.FRENCH );

That should work :-)
0
 

Author Comment

by:venkks
ID: 11901080
Yes you are right but the actual bug was <html locale="true"> so it wasnt working!  Thanks for the feedback.
0
 
LVL 35

Expert Comment

by:TimYates
ID: 11901088
Ahhhh...

Glad you got it working :-)

Tim
0

Featured Post

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

In part one, we reviewed the prerequisites required for installing SQL Server vNext. In this part we will explore how to install Microsoft's SQL Server on Ubuntu 16.04.
This article explores several main social media platforms.
Michael from AdRem Software explains how to view the most utilized and worst performing nodes in your network, by accessing the Top Charts view in NetCrunch network monitor (https://www.adremsoft.com/). Top Charts is a view in which you can set seve…
Monitoring a network: why having a policy is the best policy? Michael Kulchisky, MCSE, MCSA, MCP, VTSP, VSP, CCSP outlines the enormous benefits of having a policy-based approach when monitoring medium and large networks. Software utilized in this v…

717 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question