You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@struts.apache.org by "Lukasz Lenart (Jira)" <ji...@apache.org> on 2026/08/01 10:52:02 UTC

[jira] [Updated] (WW-4353) Automatic mapping from URL to methods in action classes

     [ https://issues.apache.org/jira/browse/WW-4353?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Lukasz Lenart updated WW-4353:
------------------------------
    Fix Version/s: 7.4.0
                       (was: 7.3.0)

> Automatic mapping from URL to methods in action classes
> -------------------------------------------------------
>
>                 Key: WW-4353
>                 URL: https://issues.apache.org/jira/browse/WW-4353
>             Project: Struts 2
>          Issue Type: Improvement
>          Components: Plugin - Convention
>            Reporter: Antonio Sánchez
>            Priority: Minor
>              Labels: action, convention, mapping, method, url
>             Fix For: 7.4.0
>
>
> Provide Conventions with automatic mappings from url to methods in action classes. For instance:
> /person -> com.myapp.actions.Person#execute (SUCCESS) -> person.jsp
> /person-edit -> com.myapp.action.Person#edit -> person-edit.jsp
> /person-submit -> com.myapp.actions.Person#submit -> person-submit.jsp || person-input.jsp
> Currently, only class names are mapped:
> /person-edit -> com.myapp.action.PersonEdit#execute (SUCCESS) -> person-edit.jsp 
> This forces a one class per action design, which is usually unacceptable.
> Beyond the benefit itself of providing this feature, it would allow using Conventions for designing generic actions (generic CRUD action, for instance). Currently it is not possible and wildcard mappings is the only choice. 
> Discussed here:
> http://markmail.org/message/luquq6wfeqbng6kj



--
This message was sent by Atlassian Jira
(v8.20.10#820010)