can someone show me how to use message-resources? i can't seem to get it right by
following the documention.
the filename of my application resources is ApplicationResources.properties
i use to put my message resources in web.xml under my servlet using this:
<servlet>
<servlet-name>action</servlet-name>
<servlet-class>org.apache.struts.action.ActionServlet</servlet-class>
...
<init-param>
<param-name>application</param-name>
<param-value>ApplicationResources</param-value>
</init-param>
....
</servlet>
>>> the above work .
now how do i put the message-resources tag... i put it on my struts-config.xml but i
cannot make my application
run... i always get this error:
[ServletException in:/layouts/crmDefaultLayout.jsp] Cannot find message resources
under key org.apache.struts.action.MESSAGE'
my message-resources config looks like this:
<message-resources>
<param-name>parameter</param-name>
<param-value>/WEB-INF/classes/ApplicationResources.properties</param-value>
</message-resources>
hope anyone could teach me and show me how to use message-resources... thanks