You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@struts.apache.org by "Maurizio Cucchiara (Commented) (JIRA)" <ji...@apache.org> on 2011/12/02 09:55:39 UTC
[jira] [Commented] (WW-3717) Http Method as part of action mapping
[ https://issues.apache.org/jira/browse/WW-3717?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13161494#comment-13161494 ]
Maurizio Cucchiara commented on WW-3717:
----------------------------------------
I'm not sure how this feature fits with the struts architecture, we should find another way IMHO (maybe annotation is one solution).
Until now, as far as I can remember, there is no web stuff inside the struts configuration files.
> 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