Will this temp variable associated with the user will be passed from the
user anon to the registered user when the user logs in and vise versa ? 



-----Original Message-----
From: Michael Burschik [mailto:[EMAIL PROTECTED]
Sent: Thursday, October 23, 2003 9:04 AM
To: 'Jetspeed Users List'
Subject: AW: How to determine language in a portlet?




> -----Urspr�ngliche Nachricht-----
> Von: Youssef Mohammed
> [mailto:[EMAIL PROTECTED]
> Gesendet: Mittwoch, 22. Oktober 2003 12:26
> An: Jetspeed Users List
> Betreff: RE: How to determine language in a portlet?
> 
> 
> Try 
> org.apache.turbine.services.localization.LocalizationTool.getL
> ocale( ) 
> And/or 
> org.apache.turbine.services.localization.LocaleDetector.getLcale() 
> 
> one of them sould be working AFAIK 

According to the documentation, these to methods also refer to the
Accept-Language header of the Request, which will not change when the
user
selects a language by means of the select language portlet, which simply
adds something like "js_language=en" to the query data.

A look at JetspeedSessionValidator.java finally reveals that the
language
and locale data is stored in the user object, so what I actually want is
rundata.getUser().getTemp( "locale" ).

Thanks to everyone who replied to my queries.

Regards

Michael Burschik

Attachment: smime.p7s
Description: S/MIME cryptographic signature

Reply via email to