Struts 2
  1. Struts 2
  2. WW-4100

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

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 2.3.14.3
    • Fix Version/s: 2.3.16
    • Component/s: Plugin - Convention
    • Labels:
      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.

        Activity

          People

          • Assignee:
            Lukasz Lenart
            Reporter:
            Mark Woon
          • Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development