Skip to Content
0
Former Member
Mar 22, 2009 at 02:18 PM

Code works in AbstractPortalComponent but not JSP

13 Views

Hello,

This code works fine in AbstractPortalComponent....

IUserFactory userFactAr = UMFactory.getUserFactory();

IUser meAr = request.getUser();

Locale locAR = new Locale("ar");

try {

IUserMaint modUserAr = userFactAr.getMutableUser(meAr.getUniqueID());

modUserAr.setLocale("ar");

modUserAr.commit();

} catch (UMException e) {

}

The result is that the user's locale/language is set to arabic.

BUT when I implement it in a JSP, the code does not behave as before! In fact it seems that the language is always set to English when the code runs?

Any ideas?

Regards

Mr.T