Improve company productivity with a Business Account.Sign Up

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 220
  • Last Modified:

In struts how to programmatically set the Locale?

I want to set the Locale that the application must use programmatically and not using LocaleAction...   how could i do that?
0
venkks
Asked:
venkks
  • 2
1 Solution
 
TimYatesCommented:
Try something like:

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

That should work :-)
0
 
venkksAuthor Commented:
Yes you are right but the actual bug was <html locale="true"> so it wasnt working!  Thanks for the feedback.
0
 
TimYatesCommented:
Ahhhh...

Glad you got it working :-)

Tim
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Get your problem seen by more experts

Be seen. Boost your question’s priority for more expert views and faster solutions

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now