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

Can no longer clear parameter on a <s:url> tag.

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 2.5.5
    • Fix Version/s: 2.5.8
    • Component/s: None
    • Labels:
      None

      Description

      Consider the following:

      <s:url action=“init” includeParams=“get”>
          <s:param name="param1" value="" />
      </s:url>
      

      Before 2.5.5, this would have removed “param1” from the generated url if it was present. (The evaluated value would have been null, and so Component.addParameter(name, value) would have removed the parameter).

        Issue Links

          Activity

          Hide
          hudson Hudson added a comment -

          SUCCESS: Integrated in Jenkins build Struts-JDK7-master #552 (See https://builds.apache.org/job/Struts-JDK7-master/552/)
          WW-4701 Drop parameter if not defined (lukaszlenart: rev 986b43f3147c73611fdb3956fdbd4fe01a06e550)

          • (edit) core/src/main/java/org/apache/struts2/components/Param.java
          Show
          hudson Hudson added a comment - SUCCESS: Integrated in Jenkins build Struts-JDK7-master #552 (See https://builds.apache.org/job/Struts-JDK7-master/552/ ) WW-4701 Drop parameter if not defined (lukaszlenart: rev 986b43f3147c73611fdb3956fdbd4fe01a06e550) (edit) core/src/main/java/org/apache/struts2/components/Param.java
          Hide
          lukaszlenart Lukasz Lenart added a comment -

          Done

          Show
          lukaszlenart Lukasz Lenart added a comment - Done
          Hide
          jira-bot ASF subversion and git services added a comment -

          Commit 986b43f3147c73611fdb3956fdbd4fe01a06e550 in struts's branch refs/heads/master from Lukasz Lenart
          [ https://git-wip-us.apache.org/repos/asf?p=struts.git;h=986b43f ]

          WW-4701 Drop parameter if not defined

          Show
          jira-bot ASF subversion and git services added a comment - Commit 986b43f3147c73611fdb3956fdbd4fe01a06e550 in struts's branch refs/heads/master from Lukasz Lenart [ https://git-wip-us.apache.org/repos/asf?p=struts.git;h=986b43f ] WW-4701 Drop parameter if not defined

            People

            • Assignee:
              lukaszlenart Lukasz Lenart
              Reporter:
              agreenfield Adam Greenfield
            • Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Development