Issue Details (XML | Word | Printable)

Key: STR-3063
Type: Bug Bug
Status: Closed Closed
Resolution: Fixed
Priority: Major Major
Assignee: Unassigned
Reporter: qiuhao
Votes: 0
Watchers: 0
Operations

If you were logged in you would be able to see more operations.
Struts 1

Incorrect lookup sequence of resource bundle

Created: 04/Jul/07 06:58 AM   Updated: 20/Aug/07 09:46 AM
Return to search
Component/s: Core
Affects Version/s: 1.0.1
Fix Version/s: 1.3.6

Environment: Windows 2000 server + JDK 1.4.2_04
Issue Links:
Duplicate
 
Incorporates
 

Flags: Patch, Important


 Description  « Hide
The following is the lookup sequence of Struts when the language of IE is "en_US"
(user locale or session locale) and the locale of JVM is "zh_CN"(default
locale).
1. ApplicationResources_en_US.properties
2. ApplicationResources_en.properties
3. ApplicationResources_zh_CN.properties.
4. ApplicationResources.properties.

There are two problems in this lookup sequence. The first, Struts should pick
up ApplicationResources.propertis after ApplicationResources_en.propertis. The
second, if ApplicationResources_zh_CN.properties doesn't exist, Struts should
pick up ApplicationResources_zh.properties. The correct lookup sequence should
be
1. ApplicationResources_en_US.properties
2. ApplicationResources_en.properties
3. ApplicationResources.properties
4. ApplicationResources_zh_CN.properties.
5. ApplicationResources_zh.properties.


 All   Comments   Change History   Subversion Commits      Sort Order: Ascending order - Click to sort in descending order
Niall Pemberton added a comment - 16/Jul/07 11:13 PM
Since Struts 1.3.6 the PropertyMessageResources can operate in three modes - see the JavaDocs for details:

http://struts.apache.org/1.3.8/apidocs/org/apache/struts/util/PropertyMessageResources.html

qiuhao added a comment - 17/Jul/07 02:08 AM

Is there any plan to fix the previous release?

Thanks.
Hao


Niall Pemberton added a comment - 17/Jul/07 02:33 AM
Not sure I understand the question - the latest GA release (that is 1.3.8) has this feature, so that is the fix for previous releases.