This is an automated email from the ASF dual-hosted git repository. lukaszlenart pushed a commit to branch WW-5842-rest-edit-form in repository https://gitbox.apache.org/repos/asf/struts-site.git
commit 2f68c3483439ba91778e9188860d97ec8fc24e00 Author: Lukasz Lenart <[email protected]> AuthorDate: Sat Nov 7 11:38:25 2026 +0100 WW-5842 docs(rest): drop the ;edit URL form from the REST plugin page The REST mapper no longer recognises /movies/Thrillers;edit; /movies/Thrillers/edit is the documented form and selects the method by name, so struts.mapper.editMethodName is deprecated. Co-Authored-By: Claude Mythos 5.1 <[email protected]> --- source/plugins/rest/index.md | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/source/plugins/rest/index.md b/source/plugins/rest/index.md index ba6f95643c..4da7eb1a0d 100644 --- a/source/plugins/rest/index.md +++ b/source/plugins/rest/index.md @@ -68,14 +68,13 @@ This mapper supports the following parameters: - `struts.mapper.postMethodName` - The method name to call for a POST request with no id parameter. Defaults to **create**. - `struts.mapper.putMethodName` - The method name to call for a PUT request with an id parameter. Defaults to **update**. - `struts.mapper.deleteMethodName` - The method name to call for a DELETE request with an id parameter. Defaults to **destroy**. -- `struts.mapper.editMethodName` - The method name to call for a GET request with an id parameter and the **edit** view specified. Defaults to **edit**. +- `struts.mapper.editMethodName` - The method whose result is rendered when a PUT request fails validation. Defaults to **edit**. The mapper itself no longer reads it: the **edit** view is selected by the `/edit` URL form, which names the method. - `struts.mapper.newMethodName` - The method name to call for a GET request with no id parameter and the **new** view specified. Defaults to **editNew**. The following URL's will invoke its methods: - `GET: /movies` => method=**index** - `GET: /movies/Thrillers` => method=**show**, id=**Thrillers** -- `GET: /movies/Thrillers;edit` => method=**edit**, id=**Thrillers** - `GET: /movies/Thrillers/edit` => method=**edit**, id=**Thrillers** - `GET: /movies/new` => method=**editNew** - `POST: /movies` => method=**create**
