K
klikic
Hi.
I have a problem setting locale using fmt:setLocale.
I put <fmt:setLocale value="${command.lang}" scope="session"/> in
header, and
<fmt:message key='text.toWriteText'/> in body.
"command.lang" is set when i type in my HTTP request "?lang=locale".
"command.lang" is set properly.
Problem:
My browser has "en" and "hr" language set. "hr" language is first in
order.
When I send request "?lang=en" i get messages from "hr" locale.
When I set "en" as first in order in my browser, and I send request
"?lang=hr" I get message in "en" local.
My conclusion is that fmt:setLocale doesn't set locale variable.
What is the problem, what did I miss?
Thanx.
Alan
I have a problem setting locale using fmt:setLocale.
I put <fmt:setLocale value="${command.lang}" scope="session"/> in
header, and
<fmt:message key='text.toWriteText'/> in body.
"command.lang" is set when i type in my HTTP request "?lang=locale".
"command.lang" is set properly.
Problem:
My browser has "en" and "hr" language set. "hr" language is first in
order.
When I send request "?lang=en" i get messages from "hr" locale.
When I set "en" as first in order in my browser, and I send request
"?lang=hr" I get message in "en" local.
My conclusion is that fmt:setLocale doesn't set locale variable.
What is the problem, what did I miss?
Thanx.
Alan