The task looks like this: for Russian and English, the page should be displayed from another site, for German: the page that was written by me. I set this way:
<c:set var="localeCode" value="${fn:toUpperCase(pageContext.response.locale)}" /> <c:choose> <c:when test="${localeCode == 'DE' }"> <li><a href="<spring:message code="otcHeader.externalLink5.source" />" target="_blank"><spring:message code="otcHeader.externalLink5.text" /></a></li> </c:when> <c:otherwise> <li><a href="<c:url value="/contact"/>"><spring:message code="otcHeader.externalLink5.text" /></a></li> </c:otherwise> </c:choose> </c:when> Strange work. When I just start with the German default, I get the German locale, but it is worth changing the language, as the test starts returning false always and I get my page, although I switch to German again. Moreover, page reload does not help, only server reload. What's happening?