Bug 7595 - Localization content is not properly established when using message action with the bundle attribute specifed
Summary: Localization content is not properly established when using message action wi...
Status: RESOLVED FIXED
Alias: None
Product: Taglibs
Classification: Unclassified
Component: Standard Taglib (show other bugs)
Version: unspecified
Hardware: All All
: P3 major (vote)
Target Milestone: ---
Assignee: Tomcat Developers Mailing List
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2002-03-29 00:19 UTC by Ryan Lubke
Modified: 2004-11-16 19:05 UTC (History)
0 users



Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Ryan Lubke 2002-03-29 00:19:11 UTC
Given the following:

<fmt:message key="mkey" bundle="${application.tBundle}"/>

According to section 8.2, page 8-69 a <fmt:message> action with
a 'bundle' attribute will establish a localization context using
the specified ResourceBundle.

This is verified by the fact that ServletResponse.setLocale() is not
called in this case per section 8.4, page 8-75:

  "More specifically, the response's setLocale() method is alwasy called by
   the <fmt:locale> action (see Section 8.5). In addition, it is called by the
   following actions:
     - Any <fmt:bundle> action (see Section 8.6)
     - Any <fmt:message> action that establishes a localization context"