Bug 24597 - accept-language header missing and fallback locale
Summary: accept-language header missing and fallback locale
Status: RESOLVED FIXED
Alias: None
Product: Taglibs
Classification: Unclassified
Component: Standard Taglib (show other bugs)
Version: 1.1
Hardware: All All
: P3 normal (vote)
Target Milestone: ---
Assignee: Tomcat Developers Mailing List
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-11-11 03:35 UTC by Pierre Delisle
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 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
used.
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.