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

redirect-action should be able to accept parameters

    XMLWordPrintableJSON

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: WW 2.2.2
    • Fix Version/s: 2.0.0
    • Component/s: XML Configuration
    • Labels:
      None

      Description

      The ww:url tag lets you specify an action and parameters, like so:

      <ww:url action="myAction"><ww:param name="id" value="myParamValue"/></ww:url>

      The redirect-action result type in xwork.xml should be able to accept parameters as well.

      This is important especially when using a custom ActionMapper where the action name is not the same as the URL being used, which prevents the use of the regular redirect result type.

      (See http://forums.opensymphony.com/thread.jspa?forumID=1&threadID=25826).

        Attachments

          Activity

            People

            • Assignee:
              tm_jee tm_jee
              Reporter:
              jgrucza Jennifer Grucza
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: