读取资源文件的方法 ApplicationResources.properties
2006-04-13 14:10
711 查看
读取资源文件的方法
方法一:
jsp中:<bean:message key="lable.username"/>
方法二:
MessageResources.getMessageResources("com.yourcompany.struts.ApplicationResources");
MESSAGE.getMessage(Locale.CHINESE,"error.username");
注:
getMessageResources()参数为在struts-config.xml中定义的<message-resources parameter="profile.resources.ApplicationResources"/>中的parameter信息。
谢谢大家^o^
方法一:
jsp中:<bean:message key="lable.username"/>
方法二:
MessageResources.getMessageResources("com.yourcompany.struts.ApplicationResources");
MESSAGE.getMessage(Locale.CHINESE,"error.username");
注:
getMessageResources()参数为在struts-config.xml中定义的<message-resources parameter="profile.resources.ApplicationResources"/>中的parameter信息。
谢谢大家^o^
相关文章推荐
- java读取ApplicationResources.properties资源文件 (转贴)
- java读取ApplicationResources.properties资源文件
- Spring配置文件中使用ref local与ref bean的区别. 在ApplicationResources.properties文件中,使用<ref bean>与<ref local>方法如下
- Java读取.properties资源文件的常用2种方法
- Properties读取资源文件的四种方法
- java读取jar包中的资源文件或properties配置文件路径的方法
- ajax读取properties资源文件数据的方法
- Spring配置文件中使用ref local与ref bean的区别. 在ApplicationResources.properties文件中,使用<ref bean>与<ref local>方法如下
- java读取jar包中的资源文件或properties配置文件路径的方法
- java读取properties资源文件的六种方法
- 读取项目配置文件:ApplicationResources.properties
- html:errors标签使用(需配置资源文件ApplicationResources.properties)
- Spring配置文件中使用ref local与ref bean的区别. 在ApplicationResources.properties文件中,使用<ref bean>与<ref local>方法如下
- 从ApplicationResources.properties中读取数据对文件进行操作.java
- java 比properties好的文件读取方法
- 如何读取dll里资源文件 的几种方法
- java读取properties属性文件值方法
- Java读取Properties文件的六种方法
- 读取web应用下的资源文件(例如properties)
- 使用J2SE API读取Properties文件的六种方法