This is an automated email from the ASF dual-hosted git repository.
lukaszlenart pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/struts-site.git
The following commit(s) were added to refs/heads/main by this push:
new 31a7117a01 WW-5842 docs(rest): drop the ;edit URL form from the REST
plugin page (#370)
31a7117a01 is described below
commit 31a7117a0137e20cc1ebdaff61f9422f84cd1082
Author: Lukasz Lenart <[email protected]>
AuthorDate: Sat Nov 7 16:51:40 2026 +0100
WW-5842 docs(rest): drop the ;edit URL form from the REST plugin page (#370)
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**