Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Won't Do
-
2.0.6
-
None
-
None
-
struts 2.0.6, jdk1.5.0_06, window XP
-
Important
Description
I reproduced the xwork bug I just created here, as it is impacting struts2 developers. Please remove this bug if it is not appropriate.
—
Original bug : http://jira.opensymphony.com/browse/XW-528
—
When working with ' (quotes) in properties, we encounter a side effect that is related to bug #4293229 at sun.com (http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=4293229)
Basically, what this bug says is the following:
- double your ' when using messageFormat
- do not double your ' when using getProperty
As LocalizedTextUtil always use messageFormat, when mixing regular resourcebundle (in the heart of the application) and getText (in jsp, freemarker etc) when have inconsistencies.
Some key will be displayed correctly, and some others will be displayed with double quotes.