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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to