I have the language code in java variable. I want to set that code into setLocale value like
<%
String lang="en";
%>
<fmt:setLocale value="${lang}" scope="session"/>
But this was not working correctly. But when i set like
<fmt:setLocale value="en" scope="session"/>
,it was working perfectly. The language may be es,de... So i want to set the value like <fmt:setLocale value="${lang}" scope="session"/>
.
Is any solutions? Please help me.