Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

In struts how to programmatically set the Locale?

Posted on 2004-08-25
3
Medium Priority
?
216 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
  • 2
3 Comments
 
LVL 35

Accepted Solution

by:
TimYates earned 375 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

What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

Question has a verified solution.

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

Steps to fix error: “Couldn’t mount the database that you specified. Specified database: HU-DB; Error code: An Active Manager operation fail”
Aerodynamic noise is the cause of the majority of the noise produced by helicopters. The inordinate amount of noise helicopters produce is a major problem in the both a military and civilian setting. To remedy this problem the use of an aerogel coat…
This course is ideal for IT System Administrators working with VMware vSphere and its associated products in their company infrastructure. This course teaches you how to install and maintain this virtualization technology to store data, prevent vuln…
Are you ready to place your question in front of subject-matter experts for more timely responses? With the release of Priority Question, Premium Members, Team Accounts and Qualified Experts can now identify the emergent level of their issue, signal…

916 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