I was helping a client out today with a servlet container upgrade, and hit upon an interesting issue. They use <fmt:message bundle="xyz" key="foobar" /> throughout their webapp. The point of interest is the bundle="xyz" attribute as usually I think people use fmt:setBundle or fmt:bundle. According to the spec, fmt:message's bundle parameter is supposed to take EITHER a String or a LocalizedContext value. The TLDDoc generated documentation says it requires a String.

However, if you look at the code in the RT module in the JSTL 1.1/JSP 2.0 implementation, you can see it only has a LocalizedContext setter method. Once more, because there is no PropertyEditor for LocalizedContext, my servlet container is complaining that it cannot use a String for this attribute.

This seems correct, that you need a PropertyEditor to define setText() to convert a String into a specific property type, but the JSTL API does not define one. Is this a bug in the spec, a bug in the ASF JSTL impl, or a bug in my servlet container?

--
Serge Knystautas
Lokitech

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Reply via email to