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

"error" result defined in global-results is ignored when using convention plugin

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 2.3.14.3
    • 2.3.16
    • Plugin - Convention
    • None

    Description

      If you have an "error" result defined in global-results in struts.xml and use the convention plugin, the global error result is ignored.

      If you have this:

          <global-results>
            <result name="error" type="dispatcher">/error/strutsError.jsp</result>
          </global-results>
        </package>
      

      The convention plugin will only dispatch to action-error.jsp or action.jsp when the former is not found, ignoring the global-results.

      Attachments

        1. Fix_for_WW-4100_no_constant_and_testcase.patch
          21 kB
          Mark Woon
        2. Fix_for_WW-4100_.patch
          7 kB
          Mark Woon

        Activity

          People

            lukaszlenart Lukasz Lenart
            markwoon Mark Woon
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: