[
https://issues.apache.org/jira/browse/WW-3717?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13161531#comment-13161531
]
Dave Newton commented on WW-3717:
---------------------------------
S2 configuration; XW doesn't know anything about http (or shouldn't, at least).
> 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
> Labels: restful
> Fix For: 3.x
>
>
> 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