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 734f3d491d6aadd9c7f7d78c6fb09284541ef1f3 Author: Lukasz Lenart <[email protected]> AuthorDate: Thu Nov 19 08:09:25 2026 +0100 WW-3666 WW-5834 docs: describe whitespace trimming and the numeric length limit in conversion Co-Authored-By: Claude Opus 5.5 <[email protected]> --- source/core-developers/type-conversion.md | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/source/core-developers/type-conversion.md b/source/core-developers/type-conversion.md index 58ae9a2d71..b67b4bf15a 100644 --- a/source/core-developers/type-conversion.md +++ b/source/core-developers/type-conversion.md @@ -33,6 +33,13 @@ This includes support for converting to and from Strings for each of the followi - Enumerations - BigDecimal and BigInteger +Since Struts 7.5.0 surrounding whitespace is trimmed before a value is converted to a non-String type, so `" 42 "` +binds to an `Integer` and `" ACTIVE "` to an enum constant. `String` and `Object` targets, and converters you register +for a type, still receive the raw value. Arrays and collections are trimmed per element. + +Since Struts 7.5.0 a numeric string longer than 1000 characters is rejected when converted to a boxed number type, +`BigInteger` or `BigDecimal`, and reported as the usual conversion error for the field. + ### Dates A request value is converted to a date or time property by trying a list of formats in order and using the first one
