Uploaded image for project: 'Struts 2'
  1. Struts 2
  2. WW-2824

refactored altSyntax expression code

    XMLWordPrintableJSON

Details

    • Task
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 2.1.3
    • 2.1.3
    • Expression Language
    • None
    • Tested in S2.1.3

    • Patch

    Description

      I did some basic refactorings to the code that tests things like stripping/adding the "%

      {" and "}" to the expressions, as suggested in https://issues.apache.org/struts/browse/WW-2811

      Now all the "%{" and "}

      " handling are confined inside the Component class.

      Note that in class StrutsBodyTagSupport.java I changed the translateVariables method implementation for one in TextParseUtil. I think they do the same thing (all S2 Core tests passed but this may need more testing.)

      Attachments

        1. altSyntax.patch
          15 kB
          Gabriel Belingueres

        Issue Links

          Activity

            People

              Unassigned Unassigned
              belingueres Gabriel Belingueres
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: