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

actionMapper null in ServletRedirectResult

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Blocker
    • Resolution: Fixed
    • None
    • 2.0.2
    • None
    • None

    Description

      At applicatin runtime, the local instance of actionMapper is null in ServletRedirectResult when an action prefix is used.

      Works but the actionMapper is null (just not accessed)

      • <@s.submit name="redirect-action:redirectActionPrefix" value="% {'redirect-action prefix'}

        " />

      Does not work because null actionMapper is accessed.

      • <@s.submit name="action:redirectActionPrefixAction" value="% {'redirect-action without prefix'}

        " />

      Works (utilizes configuration instead of embedded prefix)

      The problem may have come about in r414191, when we switched over to injection.

      http://svn.apache.org/viewvc/struts/struts2/trunk/core/src/main/java/org/apache/struts2/dispatcher/ServletRedirectResult.java?view=log

      Attachments

        Issue Links

          Activity

            People

              mrdon Donald J. Brown
              husted Ted Husted
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: