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

commit c3fde08019baab5fc265c8ea68604d0184604783
Author: Lukasz Lenart <[email protected]>
AuthorDate: Thu Nov 19 08:09:13 2026 +0100

    WW-5845 docs: describe the allowed JSONP callback names
    
    Co-Authored-By: Claude Opus 5.5 <[email protected]>
---
 source/plugins/json/index.md | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/source/plugins/json/index.md b/source/plugins/json/index.md
index f0f2d9c44c..cf6525e23a 100644
--- a/source/plugins/json/index.md
+++ b/source/plugins/json/index.md
@@ -425,6 +425,11 @@ made with the parameter "callback"="exec":
 
 And that the serialized JSON is `{name: 'El Zorro'}`. Then the output will be: 
`exec({name: 'El Zorro'})`. 
 
+Since Struts 7.5.0 the callback name must be a JavaScript identifier, 
optionally a dotted path such as
+`app.handlers.exec`, of at most 128 characters. Any other value is not used: 
the response is the plain JSON without
+a wrapper, and a warning is logged.
+{:.alert .alert-info}
+
 ### Content Type
 
 Content type will be set to `application/json-rpc` by default if SMD is being 
used, or `application/json` otherwise. 

Reply via email to