JSTL PD Spec, page 8-74 example 3. Given the preferred locales: fr, sw Fallback local: en Resource Bundles: Resources_fr_CA, Resources_sw, Resources_en The algorithm should find a language match against sw and set the resource bundle to Resources_sw, but instead, it uses the fallback locale. Example output: ********************************************************** REQUEST: [java] TRACE: REQUEST: GET /test/resourceBundleLookup.jsp?res=AlgoResources5&fall=en HTTP/1.0 [java] REQUEST HEADER: Content-Language: fr, sw [java] REQUEST HEADER: Host: localhost:8080 RESPONSE: [java] Unable to find the expected header: 'message: sw message' in the server's response. [java] ERROR: The following headers were received: [java] ERROR: HEADER -> Connection: close [java] ERROR: HEADER -> Date: Fri, 22 Mar 2002 22:08:32 GMT [java] ERROR: HEADER -> Content-Type: text/html;charset=ISO-8859-1 [java] ERROR: HEADER -> Content-Language: en-US [java] ERROR: HEADER -> message: en message [java] ERROR: HEADER -> Server: Apache Coyote HTTP/1.1 Connector [1.0] Also note, if the preferred locales is changed for fr_CA, sw, it still uses the fallback locale.
Used incorrect request header for preferred locales.