The ActionServlet class stores the users locale (retrieved from the browser) during
the first request.
(see ProcessLocale() method)
It is stored in the user's session under the key: Action.LOCALE_KEY  <-- member
variable of Action class.

Therefore, to change the locale, you need to change the value stored in this session
attribute.
Or, the message tags also allow a you to pass an attribute key that stores the
locale you want to use.

If you want the user to be able to switch locales on the fly (from the browser
settings), then you will need to over-ride the
processLocale() method to store it for each request.  We do this for demo
purposes...
Otherwise, the user may close his browser, and restart with a new locale.

HTH,
    Pete

[EMAIL PROTECTED] wrote:

> I am learning the struct architecture. I want to use the internationalization in
> my application. I have seen the example application that is currently using the
> internationalization. I want to change the locale of the application. Which are
> the points in the architecture I have to change to use the different locale.
> I have tried but unable to change. I will be thanful to you if anyone solve my
> problem.
> Vinay.
begin:vcard 
n:;
x-mozilla-html:FALSE
org:<BR><IMG SRC="http://www.irista.com/images/common/logo_top_right.gif";>
adr:;;;;;;
version:2.1
end:vcard

Reply via email to