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

URL tag - includeParams default is "none", but docs states "get" is the default

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • WW 2.2.2
    • 2.0.0
    • Plugin - Tags
    • None
    • tested on Apache Tomcat 5.5.15, JDK 6 (build 76)

    Description

      At http://wiki.opensymphony.com/display/WW/url, is stated includeParams attribute is "get" by default, indeed it was on 2.2.1.
      On 2.2.2 the ww url tag stop to work properly, tracking down the issue I found out includeParams attribute needed to be "get" or "all" to work

      See attached the test case.
      1) unzip it and copy the directory "ww-222-url-bug" to $CATALINA_HOME/webapps, restart tomcat
      2) open the browser and points to http://localhost:8080/ww-222-url-bug/encodingTestNew.action
      3) submit anything
      4) click at the link "Correct some fields"
      5) the previous form is not filled

      The scope interceptor is used.

      To make it work
      Edit encoding_test_2.ftl and add the attribute includeParams="get", make the test again.

      Attachments

        Issue Links

          Activity

            People

              tm_jee tm_jee
              claudio4j Claudio Miranda
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: