Details
-
New Feature
-
Status: Open
-
Major
-
Resolution: Unresolved
-
None
-
All
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">