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

Http Method as part of action mapping

    XMLWordPrintableJSON

Details

    Description

      Struts action configuration (and dispatcher) should allow discrimination of actions based on the HTTP method. This would allow generic REST style interfaces (in excess of the rest plugin).

      e.g.

      <action name="action1" http-method="get"> ...
      <action name="action1" http-method="post"> ...
      

      This is helpful when combined with regex patternmatcher for custom restful urls

      e.g.

      <action name="/{entity:\w+}/{id:\d+}/{report:\w+}" http-method="get">
      

      Attachments

        Activity

          People

            Unassigned Unassigned
            jnorman Jeremy Norman
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated: