Bug 7379 - Test based of example 4 of the PD spec fails to return the expected localized message.
Summary: Test based of example 4 of the PD spec fails to return the expected localized...
Status: RESOLVED INVALID
Alias: None
Product: Taglibs
Classification: Unclassified
Component: Standard Taglib (show other bugs)
Version: unspecified
Hardware: Other other
: P3 normal (vote)
Target Milestone: ---
Assignee: Tomcat Developers Mailing List
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2002-03-22 23:42 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-22 23:42:05 UTC
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.
Comment 1 Ryan Lubke 2002-03-23 00:21:23 UTC
Used incorrect request header for preferred locales.