jakarta-taglibs-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 39431] New: - Optionally enable auto-escaping of single quotes for message tags
Date Thu, 27 Apr 2006 16:23:10 GMT
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG·
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=39431>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND·
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=39431

           Summary: Optionally enable auto-escaping of single quotes for
                    message tags
           Product: Taglibs
           Version: 1.0.6
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: enhancement
          Priority: P2
         Component: Standard Taglib
        AssignedTo: taglibs-dev@jakarta.apache.org
        ReportedBy: ayud@mail.ru


The problem was originally described in bug 30297. In short, <fmt:message> tag
does not escape single quotes before passing message text to MessageFormat. This
perfectly conforms to the specification, however there are two practical
problems with this:
1) message text should either escape single quotes or leave them depending on
whether it uses parameters - increased possibility of human error: need to
always match these two factors.
2) migration from Struts <bean:message> to <fmt:message> - natural for many
organisations - requires going through all messages and escaping quotes in those
that have parameters. And what if the migration should go gradually and there is
a possibility that same message is used both by <fmt> and <bean> tags? Then
there is no neat solution.

Can you add a configurable escaping of apostrophe sign to
org.apache.taglibs.standard.tag.common.fmt.MessageSupport class? I.e. escaping
would be triggered by context parameter or system property or whatever else?

-- 
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.

---------------------------------------------------------------------
To unsubscribe, e-mail: taglibs-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: taglibs-dev-help@jakarta.apache.org


Mime
View raw message