You can get the user's locale from the method :user.getPerm ("language"). If this is 
null you can set the user locale by doing the following
:
1) Instantiate a new locale 
2)  user.setPerm ("locale" ,locale);
     user.setPerm ("language", System.getProperty ("user.language"));//Here i'm 
getting the locale from the OS.

Read the mailing lists too...there are various mails that talk about how to obtain the 
locale.
My purpose here was to figure out what the user's locale is whenever the user logs in. 
Once i set the locale it gets stored in the database and the next time the user logs 
in this locale is taken into account.

Hope this helps.

Regards,
Archana



>>> [EMAIL PROTECTED] 02/18/04 11:03AM >>>
Hi list,

I'm using Jetspeed-1.4. I've been trying to find where the user's locale is
stored. I thought it would be somewhere in rundata, but it doesn't seem to be
the case. If I use the language portlet, I see that indeed the headers of
jetpseed (login links etc) change language, but I still get en_US as locale
from rundata.

Am I looking in the wrong place?

Thanks

g

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to