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

Support code-behind design and default results

VotersWatch issueWatchersLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

Details

    Description

      There are two very common cases where we could replace configuration with conventions:

      • pages that have a template/jsp but no Action class
      • Actions that go to a result with the same name as the action e.g. FooAction -> foo.jsp

      We should have a plugin that uses the new UnknownHandler hook in XWork 2 to fill in these two common unknown cases with convention-based configuration. For example, if you have a foo.jsp, but don't have an action, the plugin should detect the jsp and front the file with a no-op Action. In the second case, the plugin should guess the result by scanning for files of the same name and creating the result on the fly.

      Attachments

        Activity

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

          People

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

            Dates

              Created:
              Updated:
              Resolved:

              Slack

                Issue deployment