If a Locale object isn't in scope, the ActionServlet
will make one based on Locale.getDefault().  You can
change it like this.

session.setAttribute(org.apache.struts.action.Action.LOCALE_KEY,
new java.util.Locale("fr", ""));

David



--- Jonathan <[EMAIL PROTECTED]> wrote:
> 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  ?!!
> 


__________________________________________________
Do You Yahoo!?
Yahoo! Auctions - buy the things you want at great prices
http://auctions.yahoo.com/

Reply via email to