[ 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.0.0 (was: 6.1.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.0.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)