I need to use fmt:message tag with custom bundle (which is not specified in web.xml). Use jstl 1.2 with tomcat 7.0.2
The doc and multiple examples ower web show that I should symply use "bunde" tag parameter to load this custom bundle, so I put the tag in this way:
<fmt:message key="message_key" bundle="com.eyewain.messages.GeoTagNamesBundle"/>
and log shows the following error when tries to display this page:
org.apache.jasper.JasperException: Unable to convert string "com.eyewain.messages.GeoTagNamesBundle" to class "javax.servlet.jsp.jstl.fmt.LocalizationContext" for attribute "bundle": Property Editor not registered with the PropertyEditorManager
But if I put the following construction instead, all works:
Can't understand the principal difference between those 2 constructions. This code is put inside my custom .tag file if that might make sense.
I could only find one relevant post with similar problem:
But it seems that their solution does not fit to my situation - I have <web-app version="2.5"...> tag in my web.xml - the version is not 2.3 and even not 2.4 as in the above post.