You just need to have your users response go to an action and create a java.util.Locale object based on the users choice of language and put it in session scope under the org.apache.struts.action.Action.LOCALE_KEY constant.
session.setAttribute(org.apache.struts.action.Action.LOCALE_KEY, new java.util.Locale("fr", "CA"));
There is no problem with multiple users. All Struts components get the locale from the users session to perform locale sensitive operations.
David
Alex Colic <[EMAIL PROTECTED]> wrote:
Hi,
my boss wants me to set up one of my apps written using struts for a demo.
He wants to have a web page with a couple of flags. The use clicks on of the
flags and enters the program using the language they selected.
Not having gone down this road before any idea what that would entail. I
know I would have to create multiple localisation files for the languages.
But how do I specify for each user what file to use and can you have
multiple users all accessing your program concurrently viewing it in
different languages.
Some insight into the above is appreciated.
Alex
Do You Yahoo!?
Yahoo! Mail Personal Address - Get email at your own domain with Yahoo! Mail.

