[ https://issues.apache.org/jira/browse/WW-3717?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Lukasz Lenart updated WW-3717: ------------------------------ 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. {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} was: 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"> > 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: 6.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)