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

Rename tag's parameters into attributes

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 7.0.0
    • Core Tags
    • None

    Description

      Tag's parameters can be confused with HttpParameters, but these are two different things and shouldn't be mixed up due to security reasons.

      Using "attributes" instead of "parameters" can allow to distinguish these two sets of data.

      Once introduced templates should use "attributes.${attrName}" instead of "parameters.${paramName}", eg.:

      <#if attributes.id??>
       id="${attributes.id}"<#rt/>
      </#if> 

      Attachments

        Issue Links

          Activity

            People

              lukaszlenart Lukasz Lenart
              lukaszlenart Lukasz Lenart
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0h
                  0h
                  Logged:
                  Time Spent - 0.5h
                  0.5h