Java 从应用服务器中的jsf页面访问属性文件
我在应用服务器的Java 从应用服务器中的jsf页面访问属性文件,java,jboss7.x,jsf-1.2,Java,Jboss7.x,Jsf 1.2,我在应用服务器的jboss-as-7.1.1/modules/Myproperties/main/Myjar.jar/TRHBundle.properties位置中有一个属性文件。 现在我如何从.xhtml页面访问它? 当我在我的项目源文件夹中使用了proerties文件,然后在faces config.xml <resource-bundle> <base-name>com.edfx.trh.common.i18n.TRHBundle</base-name
jboss-as-7.1.1/modules/Myproperties/main/Myjar.jar/TRHBundle.properties
位置中有一个属性文件。
现在我如何从.xhtml
页面访问它?
当我在我的项目源文件夹中使用了proerties文件,然后在faces config.xml
<resource-bundle>
<base-name>com.edfx.trh.common.i18n.TRHBundle</base-name>
<var>trhBundle</var>
</resource-bundle>
任何帮助都将不胜感激。提前感谢您的回复。您的文件名
trhBundle.properties
或trhBundle.properties
?@Kalathoki感谢您的回复。抱歉,我已经更新了我的问题TRHBundle.properties
是我的文件名。是com.edfx.trh.common.i18n
你的包名吗?否则。。。。。
`<h:outputText value="#{trhBundle['home']}" />`