Http Method as part of action mapping
-------------------------------------

                 Key: WW-3717
                 URL: https://issues.apache.org/jira/browse/WW-3717
             Project: Struts 2
          Issue Type: New Feature
          Components: Dispatch Filter, XML Configuration
         Environment: All
            Reporter: Jeremy Norman


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">




--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: 
https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Reply via email to