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

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

VotersWatch issueWatchersLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    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

        Activity

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          People

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

            Dates

              Created:
              Updated:
              Resolved:

              Issue deployment