ganesh pol
Mar 17th, 2006, 06:26 AM
problem is
i am using spring's 18n support for displaying messages in locale specific format
these messages are displayed on my machine as what i want
but when i am trying to display same jsp from other machines which are in LAN ,messages are something like square boxes
how should i display same locale specific messages on other machines
and not square boxes
part of jsp page relevent to this context is
<%@ page language="java" contentType="text/html; charset=utf-8"
pageEncoding="utf-8"%>
.
.
.
.
.
.
.
<spring:message code="login"/>
.
.
.
..
<spring:message code="password"/>
.
.
.
.
.
.
.
<form method="POST" name="changeLanguageForm">
<table border="0" align="center" cellpadding="0" cellspacing="0"
width="50%">
<tr>
<td align="center" valign="middle">
<select name="changeLanguageSelect"
size="1"
onChange="window.location=document.changeLanguageForm.change LanguageSelect.options[document.changeLanguageForm.changeLanguageSelect.s electedIndex].value">
<option value="-1">select</option>
<option value="?locale=en&a1.core">English</option>
<option value="?locale=mr&a1.core">Marathi</option>
</select>
</td>
</tr>
</table>
</form>
and messages_mr.properties file content is
login=\u0932\u0949\u095A
password=\u0917\u0941\u09A2\u0924\u0965\u092E
i think if i am not making mistake then browser must have the fonts
according to locale seleted
then how should i dynamically download fonts on user 's machine
how should i proceed with spring
for such type of things
i am using spring's 18n support for displaying messages in locale specific format
these messages are displayed on my machine as what i want
but when i am trying to display same jsp from other machines which are in LAN ,messages are something like square boxes
how should i display same locale specific messages on other machines
and not square boxes
part of jsp page relevent to this context is
<%@ page language="java" contentType="text/html; charset=utf-8"
pageEncoding="utf-8"%>
.
.
.
.
.
.
.
<spring:message code="login"/>
.
.
.
..
<spring:message code="password"/>
.
.
.
.
.
.
.
<form method="POST" name="changeLanguageForm">
<table border="0" align="center" cellpadding="0" cellspacing="0"
width="50%">
<tr>
<td align="center" valign="middle">
<select name="changeLanguageSelect"
size="1"
onChange="window.location=document.changeLanguageForm.change LanguageSelect.options[document.changeLanguageForm.changeLanguageSelect.s electedIndex].value">
<option value="-1">select</option>
<option value="?locale=en&a1.core">English</option>
<option value="?locale=mr&a1.core">Marathi</option>
</select>
</td>
</tr>
</table>
</form>
and messages_mr.properties file content is
login=\u0932\u0949\u095A
password=\u0917\u0941\u09A2\u0924\u0965\u092E
i think if i am not making mistake then browser must have the fonts
according to locale seleted
then how should i dynamically download fonts on user 's machine
how should i proceed with spring
for such type of things