Bug 20873 - javax.servlet.jsp.jstl.fmt.basename in web.xml is ignored
Summary: javax.servlet.jsp.jstl.fmt.basename in web.xml is ignored
Alias: None
Product: Taglibs
Classification: Unclassified
Component: Standard Taglib (show other bugs)
Version: unspecified
Hardware: PC Linux
: P3 normal (vote)
Target Milestone: ---
Assignee: Tomcat Developers Mailing List
Depends on:
Reported: 2003-06-18 14:44 UTC by Leo Mekenkamp
Modified: 2004-11-16 19:05 UTC (History)
0 users


Note You need to log in before you can comment on or make changes to this bug.
Description Leo Mekenkamp 2003-06-18 14:44:07 UTC
According to section 8.10.3 of the jstl spec
'javax.servlet.jsp.jstl.fmt.basename' could be used to specify the default
bundle that <fmt:message> tags should use. Specifying this parameter in web.xml
however causes a <fmt:message> tag to display "???<key>???".

Putting a <fmt:setBundle basename="<xxx>"/> at the beginning of the jsp
containing the <fmt:message> tag does work as it should.
Comment 1 Pierre Delisle 2003-06-18 22:12:38 UTC
I believe you are not looking at the final release of the JSTL spec.

The configuration setting is defined as follows in section 8.11.3:

8.11.3 I18n Localization Context

Specifies the default i18n localization context to be used by the i18n-capable
formatting actions. A String value is interpreted as a resource bundle basename.
Variable name: javax.servlet.jsp.jstl.fmt.localizationContext
Type: String or javax.servlet.jsp.jstl.fmt.LocalizationContext
Set by: <fmt:setBundle>
Used by:
<fmt:message>, <fmt:formatNumber>,
<fmt:parseNumber>, <fmt:formatDate>,