R
ridvansg
Hi everyone,
I am trying to retrieve resource from resource bundle with a code:
ResourceBundle
rb=PropertyResourceBundle.getBundle("MessageResources",m_locale);
rb.getString("field.text");
the probblem is that the code rb.getString("field.text") throws
exception
my resourse bundle is configured as <message-resources
parameter="MessageResources" null="false" /> in struts-config.xml
and
<context-param>
<param-name>javax.servlet.jsp.jstl.fmt.localizationContext</param-name>
<param-value>MessageResources</param-value>
</context-param>
in web.xml in order for jstl fmt:message to run.
I will appriciate any help
I am trying to retrieve resource from resource bundle with a code:
ResourceBundle
rb=PropertyResourceBundle.getBundle("MessageResources",m_locale);
rb.getString("field.text");
the probblem is that the code rb.getString("field.text") throws
exception
my resourse bundle is configured as <message-resources
parameter="MessageResources" null="false" /> in struts-config.xml
and
<context-param>
<param-name>javax.servlet.jsp.jstl.fmt.localizationContext</param-name>
<param-value>MessageResources</param-value>
</context-param>
in web.xml in order for jstl fmt:message to run.
I will appriciate any help