日期:2014-05-20  浏览次数:20659 次

怎么不能使用到i18n文件呢???????????
struts.xml:
XML code
 <constant name="struts.custom.i18n.resources" value="info" />

info_en_US.properties:userName=Tom
jsp:
JScript code
<s:text name="userName"></s:text>



在jsp页面取properties中的value时总报错,搞了一个下午,找了很多资料,都没错啊,上google总上不了,郁闷啊啊!!!

错误信息:WARN-The default value expression 'userName'was evaluated and did not match a property.The literal value 'userName' will be userd.

------解决方案--------------------
国际化文件放在scr下面,你最好在增加一个info_zh_CN.properties:userName=汤姆