?
Solved

In struts how to programmatically set the Locale?

Posted on 2004-08-25
3
Medium Priority
?
212 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 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

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Introducing Priority Question, our latest feature.
The Summer 2017 Scholarship Winners have been announced!
Add bar graphs to Access queries using Unicode block characters. Graphs appear on every record in the color you want. Give life to numbers. Hopes this gives you ideas on visualizing your data in new ways ~ Create a calculated field in a query: …
In this video, Percona Solution Engineer Rick Golba discuss how (and why) you implement high availability in a database environment. To discuss how Percona Consulting can help with your design and architecture needs for your database and infrastr…
Suggested Courses

762 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