struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Amine BADID <amineba...@yahoo.fr>
Subject Problem with internationalisation of Struts2
Date Sat, 23 Aug 2014 16:05:12 GMT
Hi All.
I have a procblem with Struts2 about Internationation exactly.
Here is the error message :
- 2014-08-23 17:55:39,643 WARN [org.apache.struts2.util.TextProviderHelper] - <The default
value expression 'Menu.logout' was evaluated and did not match a property.  The literal value
'Menu.logout' will be used.>
I can have the english properties but I cannot have any other language properties. It works
only with the english traduction !!!

In the begginning, I had not this problem. I had it only since yesterday !!
Here is struts.xml
<struts>
    <constant name="struts.objectFactory" value="spring" />
    <constant name="struts.convention.action.packages" value="mypackage.web" />
    <constant name="struts.convention.package.locators" value="action,actions,struts,struts2,web"/>
    <constant name="struts.convention.action.suffix" value="Action" />
    <constant name="struts.convention.action.mapAllMatches" value="true" />
    <constant name="struts.convention.result.path" value="/WEB-INF/jsp" />
    <constant name="struts.custom.i18n.resources" value="global" />
    <constant name="struts.devMode" value="false" />
    <constant name="struts.mapper.action.prefix.enabled" value="true"/>
</struts>
I have tow files :
global_en.properties and global_fr.properties


Can you help me please ?

Thank you in advance.

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message