Files
struts/plugins
Lukasz Lenart cc00343f1b WW-5650 Obtain a fresh JSON reader/writer per request in JSONInterceptor (#1782)
* WW-5650 revert StrutsJSONReader to plain single-use instance fields

* WW-5650 revert StrutsJSONWriter to plain single-use instance fields

* WW-5650 obtain a fresh JSONUtil per request in JSONInterceptor

* WW-5650 resolve JSONUtil lazily only on JSON request paths

Move getJSONUtil() into the JSON and JSON-RPC branches of intercept() so
requests with a non-JSON content type no longer construct and discard an
unused JSONUtil/reader/writer graph. Also trim a stray trailing blank line
in StrutsJSONWriter.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>

* WW-5650 test(json): assert JSONWriter bean stays prototype-scoped

Guards the response-side invariant from WW-5644: StrutsJSONWriter now uses
plain instance fields and is not thread-safe, so cross-request safety relies
solely on the writer bean being prototype-scoped. Assert distinct instances
per container lookup so a future switch to singleton scope fails the build.

Addresses review feedback on #1782 without adding a getWriter() accessor
purely for tests.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>

---------

Co-authored-by: Claude Opus 4.8 <noreply@anthropic.com>
2026-07-19 20:25:47 +02:00
..
2026-06-26 07:18:26 +02:00
2026-06-26 07:18:26 +02:00
2026-06-26 07:18:26 +02:00
2026-06-26 07:18:26 +02:00
2026-06-26 07:18:26 +02:00
2026-06-26 07:18:26 +02:00
2026-06-26 07:18:26 +02:00
2026-06-26 07:18:26 +02:00
2026-06-26 07:18:26 +02:00
2026-06-26 07:18:26 +02:00
2026-06-26 07:18:26 +02:00
2026-06-26 07:18:26 +02:00
2026-06-26 07:18:26 +02:00
2026-06-26 07:18:26 +02:00
2026-06-26 07:18:26 +02:00

Struts 2 Plugins

A set of officially supported plugins which are provided with the framework, you can read more about them in the documentation.