09-03-2009 05:32 AM
09-15-2009 03:18 AM
protected void setLanguage(HttpServletRequest request) {
String lang = request.getParameter(LANG);
if (lang != null) {
request.getSession().setAttribute(LOCALE, I18NUtil.parseLocale(lang));
}
Locale locale = (Locale)request.getSession().getAttribute(LOCALE);
if (locale == null) {
setLanguageFromRequestHeader(request);
} else {
I18NUtil.setLocale(locale);
}
}
Tags
Find what you came for
We want to make your experience in Hyland Connect as valuable as possible, so we put together some helpful links.