问:在struts.properties中定义i18n资源文件,能不能按系统的模块分成多个资源文件,而不全写在一个比如messageResource.properties中???
--------------------------------------------------------------------------------
答:给每个action配置个properties,例如:ProductsAction.properties
实际上就是在每个Action的包中加一个属性资源文件,必须要以Action的类名properties命名,Struts2.0是按照从小到的顺寻查找外部资源文件,调用的时候首先会查找Action的资源文件,然后依次向外查找接口的、父类的、package.properties,最后一个是你说的messageResources.properties文件!
分享到:
相关推荐
struts2的struts.properties配置文件详解
一个非常详细的struts.properties文件,一看就明白.
struts.i18n.encoding The encoding to use for localization messages 国际化信息内码 struts.i18n.reload Whether the localization messages should automatically be reloaded 是否国际化信息自动加载 ...
详尽的struts2的struts.properties各个属性介绍
struts.properties详解,每一行都给注释了,值得你一看哦
NULL 博文链接:https://wellfrog.iteye.com/blog/612014
sturts2的配置文件 struts.properties配置详解
struts2国际化_i18n 完整实例。欢迎下载。
truts.xml_struts.properties_详解共6页.pdf.zip
配置struts.properties 配置资源文件*.properties 前台页面i18n.jsp 配置struts.xml Action类文件的配置(I18NAction.java)
详细介绍struts2中的properties文件一些配置项的含义
自己学会的,保存的学习网页,给大家分享 struts2 国际化
META-INF/MANIFEST.MForg.springframework.web.struts.ActionServletAwareProcessor.class org.springframework.web.struts.ActionSupport.class org.springframework.web.struts.AutowiringRequestProcessor.class ...
解决Struts中ApplicationResources.properties文件不支持中文问题
struts.xml文件配置解释,对action配置进行说明
struts2i18n.rar struts2 i18n的实例, 环境是myeclipse6. struts2.16. struts国际化。
struts1中实现了国际化(i18n)的登陆界面