First, if there is only one properties file, use, the following code in web.xml file.
<context-param> <param-name>javax.servlet.jsp.jstl.fmt.localizationContextparam-name>class.path.to.your.resources.bundle< /param-value> context-param>
Use
Second, if there are multiple properties files, and there are different locales, use
<fmt:setBundle basename="class.path.to.your.resources.bundle"/>
before
Or you can write
<fmt:bundle basename="class.path.to.your.resource.bundle"> <fmt:message key="your.message.key"/> fmt:bundle>