Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 219
  • 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

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!

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