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

Support actions with no extensions, including directory urls

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 2.0.9
    • 2.1.0
    • Dispatch Filter
    • None

    Description

      Currently, you cannot really expose your actions without using an extension via the 'struts.action.extension' setting. If you set it to an empty string, Struts will try to handle every URL as an action, not only blocking webapp static resources but also its internally served static resources. Furthermore, you cannot define an action that will respond to a directory url (http://foo.com/myapp/dir/), without using a workaround like a redirection jsp page.

      This improvement would allow actions to be accessed without an extension, but still allow static resources and other extensions. In otherwords, the death of the ".action" extension.

      Attachments

        Issue Links

          Activity

            People

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

              Dates

                Created:
                Updated:
                Resolved: