struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From rohit dige <rising_cr...@yahoo.com>
Subject Struts Internationalization doesn't work on Linux
Date Sun, 08 Oct 2006 20:10:38 GMT
I need to show a text message on JSP page in browser's
preferred language. I have created multiple language
specific properties files and put them 
 under WEB-INF/classes/config. My JSP and
Struts-config.xml look as following

Struts-Config.xml
----------------
<message-resources
parameter="config.ApplicationResources" null="false"/>

 

JSP file
--------

<%@ page contentType=”text/html; charset=UTF-8”
pageEncoding=”UTF-8” %>

<html>

<head>

<meta http-equiv=”content-type” content=”text-html;
charset=utf-8”>

</head>

<body>
<html:html locale=”true” />
<bean:message key="mykey"/>
</body>
</html>


It shows text in browser preffered language on
Windows. But on Linux, it  does not load the correct
ApplicationResources.properties file - it loads the 
default one, instead of one for a locale (regardless
of 
whether it is language only or language and country).
Do we need any extra configuration on Linux to make it
work? Your help is greatly appreciated.

__________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org


Mime
View raw message