Bug 24597

Summary: accept-language header missing and fallback locale
Product: Taglibs Reporter: Pierre Delisle <pierre.delisle>
Component: Standard TaglibAssignee: Tomcat Developers Mailing List <dev>
Severity: normal    
Priority: P3    
Version: 1.1   
Target Milestone: ---   
Hardware: All   
OS: All   

Description Pierre Delisle 2003-11-11 03:35:17 UTC
As reported by Mattias Reichel (mattias@originalab.se):

Currently, when the accept-language header is MISSING the locale chosen is
the system default locale and not the fallback locale.

I think the fallback locale should be checked first also in this case and
only if no fallback locale is specified should the system default locale be
Comment 1 Pierre Delisle 2003-11-11 03:47:47 UTC
Indeed, this is a bug. It comes from the fact that HttpServletRequest.getLocales()
returns the server's default locale if the request did not specify a
preferred language.

We therefore need to verify if no preferred locale has been specified in the
request and use the fallback locale if that is the case.
Comment 2 Pierre Delisle 2003-12-13 05:54:10 UTC
This is now fixed in JSTL 1.1.