Bug 7596

Summary: If the <fmt:message> doesn't properly set the javax.servlet.jsp.jstl.fmt.request.charset attribute when establishing a localization context.
Product: Taglibs Reporter: Ryan Lubke <Ryan.Lubke>
Component: Standard TaglibAssignee: Tomcat Developers Mailing List <dev>
Status: RESOLVED FIXED    
Severity: major    
Priority: P3    
Version: unspecified   
Target Milestone: ---   
Hardware: All   
OS: All   

Description Ryan Lubke 2002-03-29 00:58:30 UTC
This is related to 7595.

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

According to section 8.4, page 8-76:
  "After an action has called ServletResponse.setLocale(), it must
   determine the character encoding associated with the locale (by
   calling ServletResponse.getCharacterEncoding()) and store it in
   the 'javax.servlet.jsp.jstl.fmt.request.charset' session attribute."
Comment 1 Jan Luehe 2002-03-30 01:29:25 UTC
Yes, this is related to 7595.

Setting the response locale and storing the associated char encoding in the
'javax.servlet.jsp.jstl.fmt.request.charset' session attribute are implemented
by the same method
(org.apache.taglibs.standard.tag.common.fmt.LocaleSupport.setResponseLocale()).

Now that this method gets called as a fix for 7595, it automatically also fixes
this (7596) bug.