[
https://issues.apache.org/jira/browse/WW-5256?focusedWorklogId=995042&page=com.atlassian.jira.plugin.system.issuetabpanels:worklog-tabpanel#worklog-995042
]
ASF GitHub Bot logged work on WW-5256:
--------------------------------------
Author: ASF GitHub Bot
Created on: 06/Dec/25 09:23
Start Date: 06/Dec/25 09:23
Worklog Time Spent: 10m
Work Description: lukaszlenart opened a new pull request, #286:
URL: https://github.com/apache/struts-site/pull/286
## Summary
This PR adds comprehensive documentation for the new features introduced in
apache/struts#1418 (Struts 7.2.0):
- New `<s:compress>` tag for HTML output compression
- FreeMarker whitespace stripping configuration
- Performance optimization guidance
## Related Issues
- Resolves documentation for
[WW-5256](https://issues.apache.org/jira/browse/WW-5256)
- Related to apache/struts#1418
## Documentation Updates
### New Files
- `source/tag-developers/compress-tag.md` - Complete documentation for the
compress tag including description, attributes, security features, examples,
and configuration
### Updated Files
- `source/tag-developers/tag-reference.md` - Added compress tag to the
Generic Tags table
- `source/core-developers/performance-tuning.md` - Added two new sections:
- Enable FreeMarker Whitespace Stripping
- Use the Compress Tag for HTML Output Optimization
- `source/core-developers/freemarker-support.md` - Added FreeMarker
Whitespace Stripping section
- `source/core-developers/constant-configuration.md` - Added examples for
new configuration constants
## New Configuration Constants Documented
- `struts.freemarker.whitespaceStripping` - Controls FreeMarker whitespace
stripping (default: true, auto-disabled in devMode)
- `struts.compress.enabled` - Controls global compress tag behavior
(default: true)
- `struts.compress.maxSize` - Maximum compressible content size (default:
10MB)
- `struts.compress.log.maxLength` - Maximum log message length (default: 200
chars)
## Test Plan
- [x] Documentation builds successfully
- [ ] Review content accuracy
- [ ] Verify links work correctly
- [ ] Check formatting consistency
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Issue Time Tracking
-------------------
Worklog Id: (was: 995042)
Time Spent: 3.5h (was: 3h 20m)
> Reduce size of generate html out of freemarker tag templates
> ------------------------------------------------------------
>
> Key: WW-5256
> URL: https://issues.apache.org/jira/browse/WW-5256
> Project: Struts 2
> Issue Type: Improvement
> Components: Core Tags
> Reporter: Lukasz Lenart
> Assignee: Lukasz Lenart
> Priority: Major
> Fix For: 7.2.0
>
> Time Spent: 3.5h
> Remaining Estimate: 0h
>
> Currently tags are producing a lot of white-space characters and line breaks
> due to how Freemarker handles all the white-space characters. This can be
> improved by using a few helpful directtives:
> [https://freemarker.apache.org/docs/dgui_misc_whitespace.html]
> One of them is the
> [<#compress>|https://freemarker.apache.org/docs/dgui_misc_whitespace.html#autoid_30]
> directive.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)