You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@struts.apache.org by "Florent Ramière (JIRA)" <ji...@apache.org> on 2007/06/12 13:07:26 UTC
[jira] Created: (WW-1984) [Properties] Quote handling
Inconsistencies introduced by getText
[Properties] Quote handling Inconsistencies introduced by getText
-----------------------------------------------------------------
Key: WW-1984
URL: https://issues.apache.org/struts/browse/WW-1984
Project: Struts 2
Issue Type: Bug
Components: Integration
Affects Versions: 2.0.6
Environment: struts 2.0.6, jdk1.5.0_06, window XP
Reporter: Florent Ramière
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.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Updated: (WW-1984) [Properties] Quote handling
Inconsistencies introduced by getText
Posted by "Ted Husted (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/struts/browse/WW-1984?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Ted Husted updated WW-1984:
---------------------------
Fix Version/s: Future
Setting Fix Version to "future" for issues without a set fix version.
> [Properties] Quote handling Inconsistencies introduced by getText
> -----------------------------------------------------------------
>
> Key: WW-1984
> URL: https://issues.apache.org/struts/browse/WW-1984
> Project: Struts 2
> Issue Type: Bug
> Components: Integration
> Affects Versions: 2.0.6
> Environment: struts 2.0.6, jdk1.5.0_06, window XP
> Reporter: Florent Ramière
> Fix For: Future
>
>
> 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.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.