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

redirect-action missing as default result type

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Not A Problem
    • Affects Version/s: 2.1.1
    • Fix Version/s: None
    • Component/s: XML Configuration
    • Labels:
      None

      Description

      Tried to change an existing Struts 2.0.x project to use the Struts 2.1.x code. Receiving errors on startup like the following:

      There is no result type defined for type 'redirect-action' mapped with name 'success' - result - file:/C:/project/WebRoot/WEB-INF/classes/struts.xml:31:53

      Documentation indicates this should be a default type:

      http://struts.apache.org/2.x/docs/result-types.html

      Adding the result type to the configuration allows things to proceed normally.
      <result-type name="redirect-action" class="org.apache.struts2.dispatcher.ServletActionRedirectResult" />

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                Unassigned
                Reporter:
                mcalmus Mike Calmus
              • Votes:
                0 Vote for this issue
                Watchers:
                0 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: