Github user lukaszlenart commented on the pull request:
https://github.com/apache/struts/pull/8#issuecomment-41376393
But then you limit usage of it only to the Convention plugin based
applications. Even with extending DTD and adding `httpMethod` to `<action/>`
you will have limitations of using this to whole set of actions, eg. `<action
name="empoyee-*" httpMethod="get">` - all actions can be called via GET only.
Another problem is the REST plugin and its default behaviour
(`/orders/1/edit` -> `edit()`) - you will have to annotated each method with
`@Action` - instead, with current approach, you can annotate the whole
Controller class with `@GetOnly` and add few exceptions on methods (check
`OrdersController` in `rest-showcase`)
This approach is far more flexible then extending `@Action` annotation -
you can precisely set limitations where you want without changing existing
behaviour (`@Action` can override far more settings than just allowed http
method)
---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]