Bug 7379

Summary: Test based of example 4 of the PD spec fails to return the expected localized message.
Product: Taglibs Reporter: Ryan Lubke <Ryan.Lubke>
Component: Standard TaglibAssignee: Tomcat Developers Mailing List <dev>
Severity: normal    
Priority: P3    
Version: unspecified   
Target Milestone: ---   
Hardware: Other   
OS: other   

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:
 /test/resourceBundleLookup.jsp?res=AlgoResources5&fall=en HTTP/1.0
      [java] REQUEST HEADER: Content-Language: fr, sw
      [java] REQUEST HEADER: Host: localhost:8080
      [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.