[
https://issues.apache.org/jira/browse/WW-3717?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Lukasz Lenart updated WW-3717:
------------------------------
Fix Version/s: 7.1.0
(was: 7.0.0)
> 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
> Priority: Major
> Labels: restful
> Fix For: 7.1.0
>
>
> 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.
> {code:xml}
> <action name="action1" http-method="get"> ...
> <action name="action1" http-method="post"> ...
> {code}
> This is helpful when combined with regex patternmatcher for custom restful
> urls
> e.g.
> {code:xml}
> <action name="/{entity:\w+}/{id:\d+}/{report:\w+}" http-method="get">
> {code}
--
This message was sent by Atlassian Jira
(v8.20.10#820010)