|
I
believe Locale Object (or) Local object is stored under a key in session. All
you have got to do is create a new Local Object and put it under this key. In
this way struts will be easily able to pickup the new locale. Somebody in the
mailing list has asked for this before. If you check the mailing list archives
you will have your solution (code).
cheers,
Amar..
Do we get a Local object when we use struts, or
do we have to implement it? It look like I get a default Local object
for free, but if I want to be able to change languages on the fly I have to
implement more Local objects. The documentation says:
"When the user logs on, the application can store
a Locale object in the user's session. This Locale
will be used to select messages in the appropriate language. This makes it
easy to implement giving the user an option to switch languages -- simply
change the stored Locale object, and all messages are switched
automatically."
simply change the stored Locale
object, and all messages are switched automatically, H-O-W DO I "SIMPLY" CHANGE THE STORED LOCAL OBJECT
?!!
|