Struts 2
  1. Struts 2
  2. WW-3332

Alternate escape values for the "property" tag

    Details

    • Type: New Feature New Feature
    • Status: Reopened
    • Priority: Major Major
    • Resolution: Unresolved
    • Affects Version/s: 2.1.6, 2.1.8
    • Fix Version/s: 3.0
    • Component/s: Other
    • Labels:
      None

      Description

      when "escape" attribute is set to true, values are html escaped, which might not be suitable for xml escaping.

        Activity

        musachy created issue -
        musachy made changes -
        Field Original Value New Value
        Resolution Fixed [ 1 ]
        Status Open [ 1 ] Resolved [ 5 ]
        Hide
        Dale Newfield added a comment -

        that sounds good, can someone open a jira ticket so we don't depend
        on my short term memory ?

        musachy

        On Tue, Nov 17, 2009 at 10:08 AM, Dale Newfield <dale@newfield.org> wrote:
        > > Chris Pratt wrote:
        >> >>
        >> >> Or even better, add an escape attribute that takes as it's values "html",
        >> >> "xml", or "javascript". It would be very nice to have it be able to
        >> >> properly encode at least single and double quotes in JavaScript as well as
        >> >> HTML and XML, and using a more generic and extensible attribute name is
        >> >> always a good idea.
        > >
        > > For example, it could even be implemented such that an attribute
        > > escape="javascript,xml" allows the specification of multiple escape
        > > mechanisms including an ordering in which they'll be applied.

        So for reverse compatibility, the default would now be escape="xml"

        Show
        Dale Newfield added a comment - that sounds good, can someone open a jira ticket so we don't depend on my short term memory ? musachy On Tue, Nov 17, 2009 at 10:08 AM, Dale Newfield <dale@newfield.org> wrote: > > Chris Pratt wrote: >> >> >> >> Or even better, add an escape attribute that takes as it's values "html", >> >> "xml", or "javascript". It would be very nice to have it be able to >> >> properly encode at least single and double quotes in JavaScript as well as >> >> HTML and XML, and using a more generic and extensible attribute name is >> >> always a good idea. > > > > For example, it could even be implemented such that an attribute > > escape="javascript,xml" allows the specification of multiple escape > > mechanisms including an ordering in which they'll be applied. So for reverse compatibility, the default would now be escape="xml"
        Dale Newfield made changes -
        Summary Add "escapeXml" and "escapeCsv" to the "property" tag Alternate escape values for the "property" tag
        musachy made changes -
        Status Resolved [ 5 ] Reopened [ 4 ]
        Resolution Fixed [ 1 ]
        Assignee Musachy Barroso [ musachy ]
        Jeff Turner made changes -
        Project Import Mon Feb 01 01:17:42 UTC 2010 [ 1264987062082 ]
        Lukasz Lenart made changes -
        Assignee musachy [ musachy ]
        Fix Version/s 2.2.x [ 12314679 ]
        Fix Version/s 2.2.0 [ 12314680 ]
        Lukasz Lenart made changes -
        Fix Version/s 3.x [ 12319158 ]
        Fix Version/s 2.2.x [ 12314679 ]

          People

          • Assignee:
            Unassigned
            Reporter:
            musachy
          • Votes:
            1 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

            • Created:
              Updated:

              Development